mbox series

[ovs-dev,v2,0/2] : NSH: Align with latest IETF draft and fix some bugs

Message ID CFF8EF42F1132E4CBE2BF0AB6C21C58D852C3BEF@ESESSMB107.ericsson.se
Headers show
Series : NSH: Align with latest IETF draft and fix some bugs | expand

Message

Jan Scheurich Nov. 7, 2017, 3:33 p.m. UTC
This series adapts the userspace implementation for NSH in OVS to the wire-format specified in the latest NSH IETF draft and fixes a few minor bugs in the implementation.

The corrections are minimal and primarily meant to be backported to branch-2.8. The NSH userspace support on master will be refactored substantially as soon as the ongoing implementation of NSH support in the Linux kernel datapath is completed.
Then we will also provide the outstanding match field support for the new TTL field and a dec_nsh_ttl action.

I have also tested this patch series on branch-2.8. They apply cleanly and NSH tests pass.

Jan Scheurich (1)
  NSH: Minor bugfixes

Ben Pfaff and Jan Scheurich (1)
  NSH: Adjust NSH wire format to the latest IETF draft

v1 -> v2:
   - Replaced ROUND_UP and manual arithmetic with PAD_SIZE macro
   - Fixed a few too long lines

datapath/linux/compat/include/linux/openvswitch.h |   6 +-
 include/openvswitch/nsh.h                         | 219 ++++++++++++++++++++++----
 lib/flow.c                                        |  15 +-
 lib/odp-execute.c                                 |  15 +-
 lib/odp-util.c                                    |   9 +-
 lib/packets.c                                     |  12 +-
 6 files changed, 221 insertions(+), 55 deletions(-)