*** hack; for informational purposes only; not for upstream merge ***

Open vSwitch expects to match on the fragmentation state, however, the
of-dpa world of rocker does not implement such a field in its flow key. As
a work-around ignore it to allow testing (in the absence of fragments).

Signed-off-by: Simon Horman <simon.hor...@netronome.com>
---
 drivers/net/ethernet/rocker/rocker_ofdpa.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/ethernet/rocker/rocker_ofdpa.c 
b/drivers/net/ethernet/rocker/rocker_ofdpa.c
index 3b441359a3a7..2f20f1ded5bf 100644
--- a/drivers/net/ethernet/rocker/rocker_ofdpa.c
+++ b/drivers/net/ethernet/rocker/rocker_ofdpa.c
@@ -2931,9 +2931,6 @@ static int ofdpa_port_sw_flow_match(struct ofdpa_port 
*ofdpa_port,
                return -ENOTSUPP;
 
        if (flow->attrs | BIT_ULL(OVS_KEY_ATTR_IPV4)) {
-               if (mask->ip.frag)
-                       /* There is no IP frag match in OF-DPA */
-                       return -ENOTSUPP;
                if (mask->ipv4.addr.src != cpu_to_be32(0) ||
                    mask->ipv4.addr.dst != cpu_to_be32(0))
                        /* Rocker doesn't implement these matches */
-- 
2.7.0.rc3.207.g0ac5344

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to