i40e: explicitly fail on extended MAC field for ethtool_rx_flow_spec
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 6 Feb 2017 22:39:12 +0000 (14:39 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 20 Mar 2017 23:45:22 +0000 (16:45 -0700)
commit1ec8deac8c63505194e773b9657824ed3c2fbdd8
tree98bddc5c8d6d7d3fffbdd2194265b96d5efccfe8
parent097dbf52505962d06f9b707a3984d48d4f25fbe9
i40e: explicitly fail on extended MAC field for ethtool_rx_flow_spec

Although we will fail the filter later due to checking flow_type which
will have a bogus invalid type, it is possible future refactoring will
remove this hidden failure case. Avoid a possible issue in the future by
explicitly checking the flow type at the start.

Change-Id: Ia98eb26f7b93ccbe38c7141e8f203ef496fc6598
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c