From: William Tu <u9012063@gmail.com>
To: netdev@vger.kernel.org
Cc: pshelar@ovn.org
Subject: [PATCH net-next 0/2] net: erspan: add support for openvswitch
Date: Fri, 5 Jan 2018 14:29:19 -0800 [thread overview]
Message-ID: <1515191361-107730-1-git-send-email-u9012063@gmail.com> (raw)
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
next reply other threads:[~2018-01-05 22:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-05 22:29 William Tu [this message]
2018-01-05 22:29 ` [PATCH net-next 1/2] net: erspan: use bitfield instead of mask and offset William Tu
2018-01-05 22:29 ` [PATCH net-next 2/2] openvswitch: add erspan version II support William Tu
2018-01-09 0:03 ` Pravin Shelar
2018-01-09 15:17 ` William Tu
2018-01-09 21:59 ` Pravin Shelar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1515191361-107730-1-git-send-email-u9012063@gmail.com \
--to=u9012063@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pshelar@ovn.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).