mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
drivers: net: intel: use secpath helpers in more places
Use skb_sec_path and secpath_exists helpers where possible. This reduces noise in followup patch that removes skb->sp pointer. v2: no changes, preseve acks from v1. Acked-by: Shannon Nelson <shannon.lee.nelson@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2294be0f11
commit
2fdb435bc0
4 changed files with 12 additions and 7 deletions
|
@ -1065,11 +1065,13 @@ int ixgbe_ipsec_tx(struct ixgbe_ring *tx_ring,
|
|||
struct ixgbe_adapter *adapter = netdev_priv(tx_ring->netdev);
|
||||
struct ixgbe_ipsec *ipsec = adapter->ipsec;
|
||||
struct xfrm_state *xs;
|
||||
struct sec_path *sp;
|
||||
struct tx_sa *tsa;
|
||||
|
||||
if (unlikely(!first->skb->sp->len)) {
|
||||
sp = skb_sec_path(first->skb);
|
||||
if (unlikely(!sp->len)) {
|
||||
netdev_err(tx_ring->netdev, "%s: no xfrm state len = %d\n",
|
||||
__func__, first->skb->sp->len);
|
||||
__func__, sp->len);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue