This patch fixes the issue that the flow which both source MAC mask
and destination MAC mask are all zeros can not be created.
Fixes: ea0c22fd8227 ("net/i40e: enable MAC address as flow director input set")
Signed-off-by: Shougang Wang <shougangx.wang@intel.com>
Tested-by: Hailin Xu <hailinx.xu@intel.com>
Reviewed-by: Jeff Guo <jia.guo@intel.com>
                                        filter->input.flow.l2_flow.src =
                                                eth_spec->src;
                                        input_set |= (I40E_INSET_DMAC | I40E_INSET_SMAC);
-                               } else {
+                               } else if (!rte_is_zero_ether_addr(ð_mask->src) ||
+                                          !rte_is_zero_ether_addr(ð_mask->dst)) {
                                        rte_flow_error_set(error, EINVAL,
                                                      RTE_FLOW_ERROR_TYPE_ITEM,
                                                      item,