Searched hist:f7053b6ccb65a36fdfed6ad92b808464839f0eb6 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ |
H A D | tun.c | diff f7053b6ccb65a36fdfed6ad92b808464839f0eb6 Tue Sep 11 22:17:02 CDT 2018 Jason Wang <jasowang@redhat.com> tuntap: simplify error handling in tun_build_skb()
There's no need to duplicate page get logic in each action. So this patch tries to get page and calculate the offset before processing XDP actions (except for XDP_DROP), and undo them when meet errors (we don't care the performance on errors). This will be used for factoring out XDP logic.
Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|