Thread (10 messages) 10 messages, 4 authors, 2016-10-03

Re: [PATCH net-next v2 2/3] mpls: move mpls_hdr to a common location

From: pravin shelar <hidden>
Date: 2016-09-30 17:43:49

On Fri, Sep 30, 2016 at 10:08 AM, Jiri Benc [off-list ref] wrote:
quoted hunk ↗ jump to hunk
This will be also used by openvswitch.

Signed-off-by: Jiri Benc <redacted>
---
v2: new in v2
---
 include/net/mpls.h  |  9 +++++++++
 net/mpls/internal.h | 10 +---------
 2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/include/net/mpls.h b/include/net/mpls.h
index 5b3b5addfb08..3ebbc0bb57ff 100644
--- a/include/net/mpls.h
+++ b/include/net/mpls.h
@@ -19,12 +19,21 @@

 #define MPLS_HLEN 4

+struct mpls_shim_hdr {
+       __be32 label_stack_entry;
+};
+
There is already struct mpls_label defined in uapi mpls header file.
Is there reason for not using it here?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help