aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Rose <gregory.v.rose@intel.com>2012-03-23 20:26:44 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-05-02 05:12:52 -0400
commit2ee7065fdd7d3232e4accade2b5cace8af2c7d74 (patch)
tree37d8c54924f7035f0d847b9c6466a6c30d345285 /drivers
parent3ca8bc6de2b336d483bb9d83e0dfe16cde535fa6 (diff)
ixgbe: Deny MACVLAN requests from VFs with admin set MAC
If the host VMM administrator has set the virtual function device's MAC address then also deny VF requests for MACVLAN filters. Signed-off-by: Greg Rose <gregory.v.rose@intel.com> Tested-by: Garrett, Robert <robertx.e.garrett@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
index 88a58cb08569..39856371acb1 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
@@ -635,6 +635,12 @@ static int ixgbe_rcv_msg_from_vf(struct ixgbe_adapter *adapter, u32 vf)
635 } 635 }
636 break; 636 break;
637 case IXGBE_VF_SET_MACVLAN: 637 case IXGBE_VF_SET_MACVLAN:
638 if (adapter->vfinfo[vf].pf_set_mac) {
639 e_warn(drv, "VF %d requested MACVLAN filter but is "
640 "administratively denied\n", vf);
641 retval = -1;
642 break;
643 }
638 index = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) >> 644 index = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) >>
639 IXGBE_VT_MSGINFO_SHIFT; 645 IXGBE_VT_MSGINFO_SHIFT;
640 /* 646 /*