aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2023-04-21 01:55:55 +0300
committerDavid S. Miller <[email protected]>2023-04-23 14:16:44 +0100
commite2fdfd7119128b49d81972a75e74169802aa8ae0 (patch)
tree4f3d9f5bb8e65997c9ebf759e8100e626774305e /lib/test_fortify/write_overflow-strncpy-src.c
parent1f5020acb33f926030f62563c86dffca35c7b701 (diff)
net: dpaa: avoid one skb_reset_mac_header() in dpaa_enable_tx_csum()
It appears that dpaa_enable_tx_csum() only calls skb_reset_mac_header() to get to the VLAN header using skb_mac_header(). We can use skb_vlan_eth_hdr() to get to the VLAN header based on skb->data directly. This avoids spending a few cycles to set skb->mac_header. Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Acked-by: Madalin Bucur <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions