diff options
author | Florian Westphal <fw@strlen.de> | 2018-12-18 17:15:25 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-19 20:21:38 +0100 |
commit | a053c866496d0c3647727f6a282a1db3afea3ed7 (patch) | |
tree | 20337bd5c7a687c0b53ff200f4db253d18b58529 /drivers/crypto/chelsio | |
parent | xfrm: use secpath_exist where applicable (diff) | |
download | linux-a053c866496d0c3647727f6a282a1db3afea3ed7.tar.xz linux-a053c866496d0c3647727f6a282a1db3afea3ed7.zip |
drivers: chelsio: use skb_sec_path helper
reduce noise when skb->sp is removed later in the series.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/crypto/chelsio')
-rw-r--r-- | drivers/crypto/chelsio/chcr_ipsec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/crypto/chelsio/chcr_ipsec.c b/drivers/crypto/chelsio/chcr_ipsec.c index 461b97e2f1fd..ceaa16b8f72e 100644 --- a/drivers/crypto/chelsio/chcr_ipsec.c +++ b/drivers/crypto/chelsio/chcr_ipsec.c @@ -570,6 +570,7 @@ int chcr_ipsec_xmit(struct sk_buff *skb, struct net_device *dev) struct sge_eth_txq *q; struct port_info *pi; dma_addr_t addr[MAX_SKB_FRAGS + 1]; + struct sec_path *sp; bool immediate = false; if (!x->xso.offload_handle) @@ -578,7 +579,8 @@ int chcr_ipsec_xmit(struct sk_buff *skb, struct net_device *dev) sa_entry = (struct ipsec_sa_entry *)x->xso.offload_handle; kctx_len = sa_entry->kctx_len; - if (skb->sp->len != 1) { + sp = skb_sec_path(skb); + if (sp->len != 1) { out_free: dev_kfree_skb_any(skb); return NETDEV_TX_OK; } |