tuntap: split out XDP logic
authorJason Wang <jasowang@redhat.com>
Wed, 12 Sep 2018 03:17:04 +0000 (11:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 16:25:40 +0000 (09:25 -0700)
commit8ae1aff0b331ab154c39910f2e0ed239bf942d56
tree3432115ca9f5856172bc0e3c650cc87bd8f3b604
parentac1f1f6c5ae8352a39afea7b0786c59bcd730712
tuntap: split out XDP logic

This patch split out XDP logic into a single function. This make it to
be reused by XDP batching path in the following patch.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c