]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix implementation of tx push operation.
authorMichael Chan <mchan@broadcom.com>
Wed, 10 Feb 2016 22:33:49 +0000 (17:33 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2016 20:50:02 +0000 (15:50 -0500)
commitd655b94019e9bccf97b66c2c4ec46e2409a81f89
treebbc3acf688791399e3f9ac75d37b6ee8c8accaec
parent24225fe97918a1e1b8cba1572b8ab8b17df38c43
bnxt_en: Fix implementation of tx push operation.

tx push is supported for small packets to reduce DMA latency.  The
following bugs are fixed in this patch:

1. Fix the definition of the push BD which is different from the DMA BD.
2. The push buffer has to be zero padded to the next 64-bit word boundary
or tx checksum won't be correct.
3. Increase the tx push packet threshold to 164 bytes (192 bytes with the BD)
so that small tunneled packets are within the threshold.

Signed-off-by: Michael Chan <mchan@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