]> 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)
commitc7b8c6f8ce2f27602eca0a3b6ac01caa08b8d136
tree1c60f88a0936664c504e19fda04bfe71441e1e76
parent836c1716c73e4c590f77b062c0e8b1d952ec15b8
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