mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 16:38:12 +00:00
net: enetc: remove redundant clearing of skb/xdp_frame pointer in TX conf path
Later in enetc_clean_tx_ring we have: /* Scrub the swbd here so we don't have to do that * when we reuse it during xmit */ memset(tx_swbd, 0, sizeof(*tx_swbd)); So these assignments are unnecessary. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bc45f524d9
commit
e9e49ae88e
1 changed files with 0 additions and 2 deletions
|
@ -544,7 +544,6 @@ static bool enetc_clean_tx_ring(struct enetc_bdr *tx_ring, int napi_budget)
|
|||
|
||||
if (xdp_frame) {
|
||||
xdp_return_frame(xdp_frame);
|
||||
tx_swbd->xdp_frame = NULL;
|
||||
} else if (skb) {
|
||||
if (unlikely(tx_swbd->skb->cb[0] &
|
||||
ENETC_F_TX_ONESTEP_SYNC_TSTAMP)) {
|
||||
|
@ -558,7 +557,6 @@ static bool enetc_clean_tx_ring(struct enetc_bdr *tx_ring, int napi_budget)
|
|||
do_twostep_tstamp = false;
|
||||
}
|
||||
napi_consume_skb(skb, napi_budget);
|
||||
tx_swbd->skb = NULL;
|
||||
}
|
||||
|
||||
tx_byte_cnt += tx_swbd->len;
|
||||
|
|
Loading…
Reference in a new issue