aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorGreg Rose <gregory.v.rose@intel.com>2012-01-05 02:58:11 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-02-03 06:05:36 -0500
commit68d6d4ab9a963cfaece88f9b4ea23be517ce46b0 (patch)
treee088bfdefdf301927b8413e9f305f3b1418c4b3e /drivers/net/ethernet
parent9497182051f261fe688bb2d672fdbc07ab3d5348 (diff)
ixgbe: Add warning when no space left for more MAC filters
Send message to system log when the VF requests another MAC filter but there is no space left on the device for it. Signed-off-by: Greg Rose <gregory.v.rose@intel.com> Tested-by: Robert E Garrett <robertX.e.garrett@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
index b76339be8a66..8d8cdbc22df0 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c
@@ -646,6 +646,9 @@ static int ixgbe_rcv_msg_from_vf(struct ixgbe_adapter *adapter, u32 vf)
646 ixgbe_ndo_set_vf_spoofchk(adapter->netdev, vf, false); 646 ixgbe_ndo_set_vf_spoofchk(adapter->netdev, vf, false);
647 retval = ixgbe_set_vf_macvlan(adapter, vf, index, 647 retval = ixgbe_set_vf_macvlan(adapter, vf, index,
648 (unsigned char *)(&msgbuf[1])); 648 (unsigned char *)(&msgbuf[1]));
649 if (retval == -ENOSPC)
650 e_warn(drv, "VF %d has requested a MACVLAN filter "
651 "but there is no space for it\n", vf);
649 break; 652 break;
650 default: 653 default:
651 e_err(drv, "Unhandled Msg %8.8x\n", msgbuf[0]); 654 e_err(drv, "Unhandled Msg %8.8x\n", msgbuf[0]);