]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Add GRO logic for BCM5731X chips.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 13 Jun 2016 06:25:35 +0000 (02:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jun 2016 23:16:13 +0000 (19:16 -0400)
commit3c7ecab74d020a4810c183dc3fae220556cb18b6
tree1c60f88a0936664c504e19fda04bfe71441e1e76
parentf18c3a8e801fa9298c17d4108130d0924082890b
bnxt_en: Add GRO logic for BCM5731X chips.

Add bnxt_gro_func_5731x() to handle GRO packets for this chip.  The
completion structures used in the new chip have new data to help determine
the header offsets.  The offsets can be off by 4 if the packet is an
internal loopback packet (e.g. from one VF to another VF).  Some additional
logic is added to adjust the offsets if it is a loopback packet.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h