Upstream commit:
commit
c411ed854584a71b0e86ac3019b60e4789d88086
Author: Jiri Benc <jbenc@redhat.com>
Date: Mon Aug 28 21:43:24 2017 +0200
nsh: add GSO support
Add a new nsh/ directory. It currently holds only GSO functions but more
will come: in particular, code shared by openvswitch and tc to manipulate
NSH headers.
For now, assume there's no hardware support for NSH segmentation. We can
always introduce netdev->nsh_features later.
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Yi Yang <yi.y.yang@intel.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
flow_table.c \
vport.c \
vport-internal_dev.c \
- vport-netdev.c
+ vport-netdev.c \
+ nsh.c
vport_geneve_sources = vport-geneve.c
vport_vxlan_sources = vport-vxlan.c
vport_gre_sources = vport-gre.c
vport_lisp_sources = vport-lisp.c
vport_stt_sources = vport-stt.c
+nsh_sources = nsh.c
openvswitch_headers = \
compat.h \
#include <net/genetlink.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>
+#include <net/nsh.h>
#include "datapath.h"
#include "conntrack.h"
pr_info("Open vSwitch switching datapath %s\n", VERSION);
+ ovs_nsh_init();
err = action_fifos_init();
if (err)
goto error;
error_action_fifos_exit:
action_fifos_exit();
error:
+ ovs_nsh_cleanup();
return err;
}
ovs_flow_exit();
ovs_internal_dev_rtnl_link_unregister();
action_fifos_exit();
+ ovs_nsh_cleanup();
}
module_init(dp_init);
NSH_FLAGS_MASK | NSH_TTL_MASK | NSH_LEN_MASK);
}
+int ovs_nsh_init(void);
+void ovs_nsh_cleanup(void);
+
#endif /* __NET_NSH_H */