[ovs-git] [openvswitch/ovs] a3db6e: netdev-offload-tc: Allow installing arp rules to T...

NIC我是一张网卡 noreply at github.com
Mon Jun 8 09:08:49 UTC 2020

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: a3db6e473d9fb6558d0dc065bc4b3e4e1c2f9455
  Author: Tonghao Zhang <xiangxia.m.yue at gmail.com>
  Date:   2020-06-08 (Mon, 08 Jun 2020)

  Changed paths:
    M include/openvswitch/match.h
    M lib/match.c
    M lib/netdev-offload-tc.c
    M lib/odp-util.c
    M lib/tc.c
    M lib/tc.h

  Log Message:
  netdev-offload-tc: Allow installing arp rules to TC dp.

This patch allows to install arp rules to tc dp.
In the future, arp will be offloaded to hardware to
be processed. So OvS enable this now.

$ ovs-appctl dpctl/add-flow 'recirc_id(0),in_port(3),eth(),\
  eth_type(0x0806),arp(op=2,tha=00:50:56:e1:4b:ab,tip=' 2

$ ovs-appctl dpctl/dump-flows
  ... arp(tip=,op=2,tha=00:50:56:e1:4b:ab) ...

$ tc filter show dev <ethx> ingress
  eth_type arp
  arp_op reply
  arp_tha 00:50:56:e1:4b:ab
    action order 1: mirred (Egress Redirect to device <ethy>) stolen

Signed-off-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>

More information about the git mailing list