[bnxt] Remove TX padding

Remove unnecessary TX padding.

Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
This commit is contained in:
Joseph Wong
2025-06-11 15:07:16 +01:00
committed by Michael Brown
parent 3e8909cf5f
commit 1de3aef78c
2 changed files with 0 additions and 8 deletions

View File

@@ -2160,8 +2160,6 @@ static void bnxt_tx_adjust_pkt ( struct bnxt *bp, struct io_buffer *iob )
if ( iob_len ( iob ) != prev_len )
prev_len = iob_len ( iob );
iob_pad ( iob, ETH_ZLEN );
dbg_tx_pad ( prev_len, iob_len ( iob ) );
}
static int bnxt_tx ( struct net_device *dev, struct io_buffer *iob )

View File

@@ -537,12 +537,6 @@ void dbg_tx_vlan(struct bnxt *bp, char *src, u16 plen, u16 len)
dbg_prn(" old len %d new len %d\n", plen, len);
}
void dbg_tx_pad(u16 plen, u16 len)
{
if (len != plen)
dbg_prn("- Tx padded(0) old len %d new len %d\n", plen, len);
}
void dump_tx_stat(struct bnxt *bp)
{
dbg_prn(" TX stats cnt %d req_cnt %d", bp->tx.cnt, bp->tx.cnt_req);