diff options
author | Jason Wang <jasowang@redhat.com> | 2018-09-12 11:17:02 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-13 09:25:40 -0700 |
commit | f7053b6ccb65a36fdfed6ad92b808464839f0eb6 (patch) | |
tree | 3e8a43962d210ca2d9499f12dc2dc693ade1d512 /include/net/neighbour.h | |
parent | 291aeb2b1dba0d0296673d994200824a7185585e (diff) | |
download | linux-f7053b6ccb65a36fdfed6ad92b808464839f0eb6.tar.gz linux-f7053b6ccb65a36fdfed6ad92b808464839f0eb6.tar.bz2 linux-f7053b6ccb65a36fdfed6ad92b808464839f0eb6.zip |
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>
Diffstat (limited to 'include/net/neighbour.h')
0 files changed, 0 insertions, 0 deletions