[ovs-git] [openvswitch/ovs] 817a76: ct-dpif, dpif-netlink: Support conntrack flush by c...

GitHub noreply at github.com
Thu Dec 7 21:50:56 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 817a76577fec3f03310d7d3a5a10df01340ee8ad
      https://github.com/openvswitch/ovs/commit/817a76577fec3f03310d7d3a5a10df01340ee8ad
  Author: Yi-Hung Wei <yihung.wei at gmail.com>
  Date:   2017-12-07 (Thu, 07 Dec 2017)

  Changed paths:
    M lib/ct-dpif.c
    M lib/ct-dpif.h
    M lib/dpctl.c
    M lib/dpif-netdev.c
    M lib/dpif-netlink.c
    M lib/dpif-provider.h
    M lib/netlink-conntrack.c
    M lib/netlink-conntrack.h
    M ofproto/ofproto-dpif.c
    M tests/ovs-ofctl.at

  Log Message:
  -----------
  ct-dpif,dpif-netlink: Support conntrack flush by ct 5-tuple

This patch adds support of flushing a conntrack entry specified by the
conntrack 5-tuple, and provides the implementation in dpif-netlink.
The implementation of dpif-netlink in the linux datapath utilizes the
NFNL_SUBSYS_CTNETLINK netlink subsystem to delete a conntrack entry in
nf_conntrack.  Future patches will add support for the userspace and
Windows datapaths.

VMWare-BZ: #1983178
Signed-off-by: Yi-Hung Wei <yihung.wei at gmail.com>
Signed-off-by: Justin Pettit <jpettit at ovn.org>


  Commit: c43a133198667c3e3dbf356968d6c48a547f34ee
      https://github.com/openvswitch/ovs/commit/c43a133198667c3e3dbf356968d6c48a547f34ee
  Author: Yi-Hung Wei <yihung.wei at gmail.com>
  Date:   2017-12-07 (Thu, 07 Dec 2017)

  Changed paths:
    M NEWS
    M lib/ct-dpif.c
    M lib/ct-dpif.h
    M lib/dpctl.c
    M lib/dpctl.man
    M tests/system-kmod-macros.at
    M tests/system-traffic.at
    M tests/system-userspace-macros.at
    M utilities/ovs-dpctl.c

  Log Message:
  -----------
  dpctl: Support flush conntrack by conntrack 5-tuple

With this patch, "flush-conntrack" in ovs-dpctl and ovs-appctl accept
a conntrack 5-tuple to delete the conntrack entry specified by the 5-tuple.
For example, user can use the following command to flush a conntrack entry
in zone 5.

$ ovs-dpctl flush-conntrack zone=5 \
  'ct_nw_src=10.1.1.2,ct_nw_dst=10.1.1.1,ct_nw_proto=17,ct_tp_src=2,ct_tp_dst=1'

$ ovs-appctl dpctl/flush-conntrack zone=5 \
  'ct_nw_src=10.1.1.2,ct_nw_dst=10.1.1.1,ct_nw_proto=17,ct_tp_src=2,ct_tp_dst=1'

VMWare-BZ: #1983178
Signed-off-by: Yi-Hung Wei <yihung.wei at gmail.com>
Signed-off-by: Justin Pettit <jpettit at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/0bd28b0bcd26...c43a13319866


More information about the git mailing list