diff mbox series

[ovs-dev,50/62] Not offload dmac with ff:ff:ff:ff:ff:ff

Message ID 20201228092520.11807-51-taoyunxiang@cmss.chinamobile.com
State Not Applicable
Headers show
Series DPDK Offload API to test | expand

Commit Message

Tao YunXiang Dec. 28, 2020, 9:25 a.m. UTC
From: Taoyunxiang <taoyunxiang@cmss.chinamobile.com>

Code Source From: Self Code
Description:
Not offload dmac with ff:ff:ff:ff:ff:ff

Jira:  #[Optional]
市场项目编号(名称):[Optional]
---
 lib/netdev-offload-dpdk.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c
index 9dc8ae1..b5e9002 100644
--- a/lib/netdev-offload-dpdk.c
+++ b/lib/netdev-offload-dpdk.c
@@ -2007,6 +2007,11 @@  netdev_offload_dpdk_validate_flow(const struct match *match)
         goto err;
     }
 
+    /* not support dmac with ff:ff:ff:ff:ff:ff */
+    if (is_all_ones(&match->flow.dl_dst, sizeof match->flow.dl_dst)) {
+        goto err;
+    }
+
     /* support conntrack now so mark this checker
     if (masks->ct_state || masks->ct_nw_proto ||
         masks->ct_zone  || masks->ct_mark     ||