1
0
Fork 0

ionic: account for vlan tag len in rx buffer len

[ Upstream commit 8346989320 ]

Let the FW know we have enough receive buffer space for the
vlan tag if it isn't stripped.

Fixes: 0f3154e6bc ("ionic: Add Tx and Rx handling")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Link: https://lore.kernel.org/r/20201218215001.64696-1-snelson@pensando.io
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5.4-rM2-2.2.x-imx-squashed
Shannon Nelson 2020-12-18 13:50:01 -08:00 committed by Greg Kroah-Hartman
parent 5c6eb887e1
commit c41ea30c38
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ void ionic_rx_fill(struct ionic_queue *q)
unsigned int len;
unsigned int i;
len = netdev->mtu + ETH_HLEN;
len = netdev->mtu + ETH_HLEN + VLAN_HLEN;
for (i = ionic_q_space_avail(q); i; i--) {
skb = ionic_rx_skb_alloc(q, len, &dma_addr);