mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
ionic: account for vlan tag len in rx buffer len
[ Upstream commit8346989320] 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
15741c05a8
commit
0e2dee9a6b
@@ -337,7 +337,7 @@ void ionic_rx_fill(struct ionic_queue *q)
|
||||
unsigned int i, j;
|
||||
unsigned int len;
|
||||
|
||||
len = netdev->mtu + ETH_HLEN;
|
||||
len = netdev->mtu + ETH_HLEN + VLAN_HLEN;
|
||||
nfrags = round_up(len, PAGE_SIZE) / PAGE_SIZE;
|
||||
|
||||
for (i = ionic_q_space_avail(q); i; i--) {
|
||||
|
||||
Reference in New Issue
Block a user