ixgbe/fm10k: Drop tracking stats for macvlan broadcast/multicast
Drop dead code now that we shouldn't be receiving broadcast or multicast frames on the queues associated to the macvlan netdev. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
81d4e91cd5
commit
8d80ac43de
@@ -445,15 +445,14 @@ static void fm10k_type_trans(struct fm10k_ring *rx_ring,
|
||||
l2_accel = NULL;
|
||||
}
|
||||
|
||||
skb->protocol = eth_type_trans(skb, dev);
|
||||
|
||||
/* Record Rx queue, or update macvlan statistics */
|
||||
if (!l2_accel)
|
||||
skb_record_rx_queue(skb, rx_ring->queue_index);
|
||||
else
|
||||
macvlan_count_rx(netdev_priv(dev), skb->len + ETH_HLEN, true,
|
||||
(skb->pkt_type == PACKET_BROADCAST) ||
|
||||
(skb->pkt_type == PACKET_MULTICAST));
|
||||
false);
|
||||
|
||||
skb->protocol = eth_type_trans(skb, dev);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user