i40e: flower: Fix return value for unsupported offload
authorJiri Pirko <jiri@mellanox.com>
Fri, 22 Dec 2017 11:45:16 +0000 (12:45 +0100)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 3 Jan 2018 17:01:25 +0000 (09:01 -0800)
commitbc4244c6e33f96b48c4986ce4653df4673c6a08e
tree99a0e3cbf9cda5a7111b752e46ba9f45de008bd0
parent458867b2ca0c987445c5d9adccd1642970e1ba07
i40e: flower: Fix return value for unsupported offload

When filter configuration is not supported, drivers should return
-EOPNOTSUPP so the core can react correctly.

Fixes: 2f4b411a3d67 ("i40e: Enable cloud filters via tc-flower")
Signed-off-by: Jiri Pirko <jiri@mellanox.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_main.c