]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/iavf/iavf_fdir.c
net/iavf: fix ethernet header size in flow rule
[dpdk.git] / drivers / net / iavf / iavf_fdir.c
index d683a468c11c0df2479404188b797a989d2d5207..7054bde0b92af883ed3c0b7b5d42ca89d99bcd92 100644 (file)
@@ -541,7 +541,7 @@ iavf_fdir_parse_pattern(__rte_unused struct iavf_adapter *ad,
                                VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, ETH, ETHERTYPE);
 
                                rte_memcpy(hdr->buffer,
-                                       eth_spec, sizeof(*eth_spec));
+                                       eth_spec, sizeof(struct rte_ether_hdr));
                        }
 
                        filter->add_fltr.rule_cfg.proto_hdrs.count = ++layer;