summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2019-04-10 13:30:03 +0300
committerThomas Monjalon <thomas@monjalon.net>2019-04-19 12:35:28 +0200
commit8ce1fdea093c4f33c21ca6a42f8eb9cccac7441e (patch)
tree5542bfaaf7e1454cccfee40e227fb74289de9e40 /kernel
parentdb9178c24c1643b5ef58f2a9ff87c3eef8e0e1e4 (diff)
downloaddpdk-draft-windows-8ce1fdea093c4f33c21ca6a42f8eb9cccac7441e.zip
dpdk-draft-windows-8ce1fdea093c4f33c21ca6a42f8eb9cccac7441e.tar.gz
dpdk-draft-windows-8ce1fdea093c4f33c21ca6a42f8eb9cccac7441e.tar.xz
kni: implement header_ops parse method
It allows applications running packet sockets over KNI interfaces to get source Ethernet addresses of packets received using recvfrom function. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/linux/kni/kni_net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/linux/kni/kni_net.c b/kernel/linux/kni/kni_net.c
index be9e6b0..ad83658 100644
--- a/kernel/linux/kni/kni_net.c
+++ b/kernel/linux/kni/kni_net.c
@@ -744,6 +744,7 @@ kni_net_change_carrier(struct net_device *dev, bool new_carrier)
static const struct header_ops kni_net_header_ops = {
.create = kni_net_header,
+ .parse = eth_header_parse,
#ifdef HAVE_REBUILD_HEADER
.rebuild = kni_net_rebuild_header,
#endif /* < 4.1.0 */