Commit 722946b
committed
bnx2x: adopt skb_network_offset() and similar helpers
JIRA: https://issues.redhat.com/browse/RHEL-52258
JIRA: https://issues.redhat.com/browse/RHEL-52667
Conflicts: Only the bnx2x hunks.
commit 80bfab7
Author: Eric Dumazet <edumazet@google.com>
Date: Thu Feb 29 09:39:07 2024 +0000
net: adopt skb_network_offset() and similar helpers
This is a cleanup patch, making code a bit more concise.
1) Use skb_network_offset(skb) in place of
(skb_network_header(skb) - skb->data)
2) Use -skb_network_offset(skb) in place of
(skb->data - skb_network_header(skb))
3) Use skb_transport_offset(skb) in place of
(skb_transport_header(skb) - skb->data)
4) Use skb_inner_transport_offset(skb) in place of
(skb_inner_transport_header(skb) - skb->data)
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Edward Cree <ecree.xilinx@gmail.com> # for sfc
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>1 parent a4413d6 commit 722946b
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3538 | 3538 | | |
3539 | 3539 | | |
3540 | 3540 | | |
3541 | | - | |
| 3541 | + | |
3542 | 3542 | | |
3543 | 3543 | | |
3544 | 3544 | | |
| |||
3570 | 3570 | | |
3571 | 3571 | | |
3572 | 3572 | | |
3573 | | - | |
| 3573 | + | |
3574 | 3574 | | |
3575 | 3575 | | |
3576 | 3576 | | |
| |||
3613 | 3613 | | |
3614 | 3614 | | |
3615 | 3615 | | |
3616 | | - | |
| 3616 | + | |
3617 | 3617 | | |
3618 | 3618 | | |
3619 | 3619 | | |
| |||
3667 | 3667 | | |
3668 | 3668 | | |
3669 | 3669 | | |
3670 | | - | |
3671 | | - | |
| 3670 | + | |
3672 | 3671 | | |
3673 | 3672 | | |
3674 | 3673 | | |
| |||
3714 | 3713 | | |
3715 | 3714 | | |
3716 | 3715 | | |
3717 | | - | |
| 3716 | + | |
3718 | 3717 | | |
3719 | 3718 | | |
3720 | 3719 | | |
| |||
0 commit comments