From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Tu Subject: [PATCH net-next 0/2] net: erspan: add support for openvswitch Date: Fri, 5 Jan 2018 14:29:19 -0800 Message-ID: <1515191361-107730-1-git-send-email-u9012063@gmail.com> Cc: pshelar@ovn.org To: netdev@vger.kernel.org Return-path: Received: from mail-wm0-f65.google.com ([74.125.82.65]:45698 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753123AbeAEWaC (ORCPT ); Fri, 5 Jan 2018 17:30:02 -0500 Received: by mail-wm0-f65.google.com with SMTP id 9so4915697wme.4 for ; Fri, 05 Jan 2018 14:30:01 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: The first patch refactors the originally erspan header definitions. Originally, the erspan fields are defined as a group into a __be16 field, and use mask and offset to access each field. This is more costly due to calling ntohs/htons and confusing. The first patch changes it to use bitfields. The second patch adds support for openvswitch. William Tu (2): net: erspan: use bitfield instead of mask and offset openvswitch: add erspan version II support include/net/erspan.h | 127 +++++++++++++++++++++++++++++---------- include/uapi/linux/openvswitch.h | 12 +++- net/ipv4/ip_gre.c | 38 +++++------- net/ipv6/ip6_gre.c | 36 ++++------- net/openvswitch/flow_netlink.c | 125 +++++++++++++++++++++++++++++++++++--- 5 files changed, 247 insertions(+), 91 deletions(-) -- 2.7.4