]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
openvswitch: Fixed nd target mask field in the flow dump.
authorMartin Varghese <martin.varghese@nokia.com>
Mon, 28 Mar 2022 05:41:48 +0000 (11:11 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:40:25 +0000 (14:40 +0200)
commit68646039f21f9cf7992bcbf42fa68ee8eb2887c8
tree167b4ce0e2269ba2bc2ea7d8675b0af956ed0e56
parent3d97c99931ed85d25e84a1cfed4506b705d58248
openvswitch: Fixed nd target mask field in the flow dump.

BugLink: https://bugs.launchpad.net/bugs/1969110
commit f19c44452b58a84d95e209b847f5495d91c9983a upstream.

IPv6 nd target mask was not getting populated in flow dump.

In the function __ovs_nla_put_key the icmp code mask field was checked
instead of icmp code key field to classify the flow as neighbour discovery.

ufid:bdfbe3e5-60c2-43b0-a5ff-dfcac1c37328, recirc_id(0),dp_hash(0/0),
skb_priority(0/0),in_port(ovs-nm1),skb_mark(0/0),ct_state(0/0),
ct_zone(0/0),ct_mark(0/0),ct_label(0/0),
eth(src=00:00:00:00:00:00/00:00:00:00:00:00,
dst=00:00:00:00:00:00/00:00:00:00:00:00),
eth_type(0x86dd),
ipv6(src=::/::,dst=::/::,label=0/0,proto=58,tclass=0/0,hlimit=0/0,frag=no),
icmpv6(type=135,code=0),
nd(target=2001::2/::,
sll=00:00:00:00:00:00/00:00:00:00:00:00,
tll=00:00:00:00:00:00/00:00:00:00:00:00),
packets:10, bytes:860, used:0.504s, dp:ovs, actions:ovs-nm2

Fixes: e64457191a25 (openvswitch: Restructure datapath.c and flow.c)
Signed-off-by: Martin Varghese <martin.varghese@nokia.com>
Link: https://lore.kernel.org/r/20220328054148.3057-1-martinvarghesenokia@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit acabfc94324531d0c22451d5d17f08c498dde357)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/openvswitch/flow_netlink.c