aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Rose <gregory.v.rose@intel.com>2012-10-01 20:50:52 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-10-30 02:48:46 -0400
commitf9d08f165b8a5a4af6f827318e692b57bc683825 (patch)
tree656701879aacf4e165ba5bf82c126296dd8bcfaf
parentf42df16756dbcaba7b50cb7bbb0833b65d3ae167 (diff)
ixgbevf: Do not forward LLDP type frames
The driver should not forward LLDP type frames. Inspect the ether type and do not send if it is an LLDP ethertype frame. Signed-off-by: Greg Rose <gregory.v.rose@intel.com> Tested-by: Sibai Li <sibai.li@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
index 07d7eaba6f1b..b5979ba52b4c 100644
--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
@@ -2968,6 +2968,11 @@ static int ixgbevf_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
2968#if PAGE_SIZE > IXGBE_MAX_DATA_PER_TXD 2968#if PAGE_SIZE > IXGBE_MAX_DATA_PER_TXD
2969 unsigned short f; 2969 unsigned short f;
2970#endif 2970#endif
2971 u8 *dst_mac = skb_header_pointer(skb, 0, 0, NULL);
2972 if (!dst_mac || is_link_local(dst_mac)) {
2973 dev_kfree_skb(skb);
2974 return NETDEV_TX_OK;
2975 }
2971 2976
2972 tx_ring = &adapter->tx_ring[r_idx]; 2977 tx_ring = &adapter->tx_ring[r_idx];
2973 2978