mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 02:10:25 +03:00
[bnxt] Remove TX padding
Remove unnecessary TX padding. Signed-off-by: Joseph Wong <joseph.wong@broadcom.com>
This commit is contained in:
committed by
Michael Brown
parent
3e8909cf5f
commit
1de3aef78c
@@ -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 )
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user