mbox series

[ovs-dev,RFC,0/2] tunnel: add erspan support.

Message ID 1519251571-109146-1-git-send-email-u9012063@gmail.com
Headers show
Series tunnel: add erspan support. | expand

Message

William Tu Feb. 21, 2018, 10:19 p.m. UTC
The RFC patch adds erspan support for OVS to use the
erspan feature in its kernel datapath.  Currently the
patch only works on kernel 4.15 thus I mark it as RFC.
The first patch fixes the compile error on 4.15, and
the second patch introduces erspan tunnel protocol.

William Tu (2):
  erspan: fix compile error for kernel 4.15
  tunnel: add erspan support for kernel datapath.

 datapath/linux/compat/include/linux/openvswitch.h |   2 +
 datapath/linux/compat/include/net/ip6_fib.h       |   4 +-
 include/openvswitch/flow.h                        |   4 +-
 include/openvswitch/match.h                       |   8 ++
 include/openvswitch/meta-flow.h                   |  56 ++++++++
 include/openvswitch/packets.h                     |   6 +-
 lib/dpif-netlink-rtnl.c                           |   5 +
 lib/dpif-netlink.c                                |   5 +
 lib/flow.c                                        |  32 +++--
 lib/flow.h                                        |   2 +-
 lib/match.c                                       |  66 +++++++++-
 lib/meta-flow.c                                   |  77 +++++++++++
 lib/meta-flow.xml                                 |  86 ++++++++++++
 lib/netdev-vport.c                                |  23 ++++
 lib/netdev.h                                      |   5 +
 lib/nx-match.c                                    |  13 +-
 lib/odp-util.c                                    | 151 ++++++++++++++++++++++
 lib/odp-util.h                                    |   2 +-
 lib/ofp-match.c                                   |   2 +-
 lib/packets.h                                     |  91 +++++++++++++
 ofproto/ofproto-dpif-rid.h                        |   2 +-
 ofproto/ofproto-dpif-xlate.c                      |   3 +-
 ofproto/tunnel.c                                  |  13 ++
 tests/odp.at                                      |  25 +++-
 tests/ofproto.at                                  |   6 +-
 tests/system-common-macros.at                     |   5 +
 tests/system-traffic.at                           |  70 ++++++++++
 tests/tunnel.at                                   | 105 +++++++++++++++
 vswitchd/vswitch.xml                              |  34 +++++
 29 files changed, 881 insertions(+), 22 deletions(-)

Comments

Gregory Rose Feb. 24, 2018, 10:33 p.m. UTC | #1
On 2/21/2018 2:19 PM, William Tu wrote:
> The RFC patch adds erspan support for OVS to use the
> erspan feature in its kernel datapath.  Currently the
> patch only works on kernel 4.15 thus I mark it as RFC.
> The first patch fixes the compile error on 4.15, and
> the second patch introduces erspan tunnel protocol.
>
> William Tu (2):
>    erspan: fix compile error for kernel 4.15
>    tunnel: add erspan support for kernel datapath.
>
>   datapath/linux/compat/include/linux/openvswitch.h |   2 +
>   datapath/linux/compat/include/net/ip6_fib.h       |   4 +-
>   include/openvswitch/flow.h                        |   4 +-
>   include/openvswitch/match.h                       |   8 ++
>   include/openvswitch/meta-flow.h                   |  56 ++++++++
>   include/openvswitch/packets.h                     |   6 +-
>   lib/dpif-netlink-rtnl.c                           |   5 +
>   lib/dpif-netlink.c                                |   5 +
>   lib/flow.c                                        |  32 +++--
>   lib/flow.h                                        |   2 +-
>   lib/match.c                                       |  66 +++++++++-
>   lib/meta-flow.c                                   |  77 +++++++++++
>   lib/meta-flow.xml                                 |  86 ++++++++++++
>   lib/netdev-vport.c                                |  23 ++++
>   lib/netdev.h                                      |   5 +
>   lib/nx-match.c                                    |  13 +-
>   lib/odp-util.c                                    | 151 ++++++++++++++++++++++
>   lib/odp-util.h                                    |   2 +-
>   lib/ofp-match.c                                   |   2 +-
>   lib/packets.h                                     |  91 +++++++++++++
>   ofproto/ofproto-dpif-rid.h                        |   2 +-
>   ofproto/ofproto-dpif-xlate.c                      |   3 +-
>   ofproto/tunnel.c                                  |  13 ++
>   tests/odp.at                                      |  25 +++-
>   tests/ofproto.at                                  |   6 +-
>   tests/system-common-macros.at                     |   5 +
>   tests/system-traffic.at                           |  70 ++++++++++
>   tests/tunnel.at                                   | 105 +++++++++++++++
>   vswitchd/vswitch.xml                              |  34 +++++
>   29 files changed, 881 insertions(+), 22 deletions(-)
>

Thanks for adding the system tests.  I should have a chance in the next 
few days to test it out
on the erspan backport patches I'm working on.

Regards,

- Greg
William Tu Feb. 26, 2018, 3:28 p.m. UTC | #2
On Sat, Feb 24, 2018 at 2:33 PM, Gregory Rose <gvrose8192@gmail.com> wrote:
> On 2/21/2018 2:19 PM, William Tu wrote:
>>
>> The RFC patch adds erspan support for OVS to use the
>> erspan feature in its kernel datapath.  Currently the
>> patch only works on kernel 4.15 thus I mark it as RFC.
>> The first patch fixes the compile error on 4.15, and
>> the second patch introduces erspan tunnel protocol.
>>
>> William Tu (2):
>>    erspan: fix compile error for kernel 4.15
>>    tunnel: add erspan support for kernel datapath.
>>
>>   datapath/linux/compat/include/linux/openvswitch.h |   2 +
>>   datapath/linux/compat/include/net/ip6_fib.h       |   4 +-
>>   include/openvswitch/flow.h                        |   4 +-
>>   include/openvswitch/match.h                       |   8 ++
>>   include/openvswitch/meta-flow.h                   |  56 ++++++++
>>   include/openvswitch/packets.h                     |   6 +-
>>   lib/dpif-netlink-rtnl.c                           |   5 +
>>   lib/dpif-netlink.c                                |   5 +
>>   lib/flow.c                                        |  32 +++--
>>   lib/flow.h                                        |   2 +-
>>   lib/match.c                                       |  66 +++++++++-
>>   lib/meta-flow.c                                   |  77 +++++++++++
>>   lib/meta-flow.xml                                 |  86 ++++++++++++
>>   lib/netdev-vport.c                                |  23 ++++
>>   lib/netdev.h                                      |   5 +
>>   lib/nx-match.c                                    |  13 +-
>>   lib/odp-util.c                                    | 151
>> ++++++++++++++++++++++
>>   lib/odp-util.h                                    |   2 +-
>>   lib/ofp-match.c                                   |   2 +-
>>   lib/packets.h                                     |  91 +++++++++++++
>>   ofproto/ofproto-dpif-rid.h                        |   2 +-
>>   ofproto/ofproto-dpif-xlate.c                      |   3 +-
>>   ofproto/tunnel.c                                  |  13 ++
>>   tests/odp.at                                      |  25 +++-
>>   tests/ofproto.at                                  |   6 +-
>>   tests/system-common-macros.at                     |   5 +
>>   tests/system-traffic.at                           |  70 ++++++++++
>>   tests/tunnel.at                                   | 105 +++++++++++++++
>>   vswitchd/vswitch.xml                              |  34 +++++
>>   29 files changed, 881 insertions(+), 22 deletions(-)
>>
>
> Thanks for adding the system tests.  I should have a chance in the next few
> days to test it out
> on the erspan backport patches I'm working on.
>
> Regards,
>
> - Greg

Thanks Greg.

William