mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
net: Add asynchronous callbacks for xfrm on layer 2.
This patch implements asynchronous crypto callbacks and a backlog handler that can be used when IPsec is done at layer 2 in the TX path. It also extends the skb validate functions so that we can update the driver transmit return codes based on async crypto operation or to indicate that we queued the packet in a backlog queue. Joint work with: Aviv Heller <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
This commit is contained in:
parent
3dca3f38cf
commit
f53c723902
8 changed files with 175 additions and 36 deletions
|
|
@ -247,12 +247,13 @@ static int packet_direct_xmit(struct sk_buff *skb)
|
|||
struct sk_buff *orig_skb = skb;
|
||||
struct netdev_queue *txq;
|
||||
int ret = NETDEV_TX_BUSY;
|
||||
bool again = false;
|
||||
|
||||
if (unlikely(!netif_running(dev) ||
|
||||
!netif_carrier_ok(dev)))
|
||||
goto drop;
|
||||
|
||||
skb = validate_xmit_skb_list(skb, dev);
|
||||
skb = validate_xmit_skb_list(skb, dev, &again);
|
||||
if (skb != orig_skb)
|
||||
goto drop;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue