[ovs-git] [openvswitch/ovs] 275018: ofproto-dpif: Expose datapath capability to ovsdb.

William Tu noreply at github.com
Thu Nov 21 17:20:50 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 27501802d09f782b8133031c1eae3394ae5ce147
      https://github.com/openvswitch/ovs/commit/27501802d09f782b8133031c1eae3394ae5ce147
  Author: William Tu <u9012063 at gmail.com>
  Date:   2019-11-21 (Thu, 21 Nov 2019)

  Changed paths:
    M lib/meta-flow.xml
    M ofproto/ofproto-dpif.c
    M ofproto/ofproto-provider.h
    M ofproto/ofproto.c
    M ofproto/ofproto.h
    M tests/ovs-vsctl.at
    M utilities/ovs-vsctl.8.in
    M utilities/ovs-vsctl.c
    M vswitchd/bridge.c
    M vswitchd/vswitch.ovsschema
    M vswitchd/vswitch.xml

  Log Message:
  -----------
  ofproto-dpif: Expose datapath capability to ovsdb.

The patch adds support for fetching the datapath's capabilities
from the result of 'check_support()', and write the supported capability
to a new database column, called 'capabilities' under Datapath table.

To see how it works, run:
 # ovs-vsctl -- add-br br0 -- set Bridge br0 datapath_type=netdev
 # ovs-vsctl -- --id=@m create Datapath datapath_version=0 \
     'ct_zones={}' 'capabilities={}' \
     -- set Open_vSwitch . datapaths:"netdev"=@m

 # ovs-vsctl list-dp-cap netdev
 ufid=true sample_nesting=true clone=true tnl_push_pop=true \
 ct_orig_tuple=true ct_eventmask=true ct_state=true \
 ct_clear=true max_vlan_headers=1 recirc=true ct_label=true \
 max_hash_alg=1 ct_state_nat=true ct_timeout=true \
 ct_mark=true ct_orig_tuple6=true check_pkt_len=true \
 masked_set_action=true max_mpls_depth=3 trunc=true ct_zone=true

Signed-off-by: William Tu <u9012063 at gmail.com>
Tested-by: Greg Rose <gvrose8192 at gmail.com>
Reviewed-by: Greg Rose <gvrose8192 at gmail.com>
---
v5:
    Add improved documentation from Ben and
    fix checkpatch error (tab and line 79 char)
v4:
    rebase to master
v3:
    fix 32-bit build, reported by Greg
    travis: https://travis-ci.org/williamtu/ovs-travis/builds/599276267
v2:
	rebase to master


  Commit: 7bf075d95a2b470dc9d6cbadbf93d856136c6090
      https://github.com/openvswitch/ovs/commit/7bf075d95a2b470dc9d6cbadbf93d856136c6090
  Author: William Tu <u9012063 at gmail.com>
  Date:   2019-11-21 (Thu, 21 Nov 2019)

  Changed paths:
    M lib/netdev-afxdp.c
    M lib/netdev-afxdp.h
    M lib/netdev-linux.c

  Log Message:
  -----------
  netdev-afxdp: Enable libbpf logging to OVS.

libbpf has pr_warn, pr_info, and pr_debug. The patch registers
these print functions, integrating the libbpf logs to OVS log.

Signed-off-by: William Tu <u9012063 at gmail.com>
Acked-by: Eelco Chaudron <echaudro at redhat.com>


Compare: https://github.com/openvswitch/ovs/compare/acb691e15e31...7bf075d95a2b


More information about the git mailing list