sfc: ensure an extack msg from efx_tc_flower_replace_foreign EOPNOTSUPPs
authorEdward Cree <ecree.xilinx@gmail.com>
Mon, 2 Oct 2023 15:44:43 +0000 (16:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Oct 2023 10:05:45 +0000 (11:05 +0100)
commitf96622fd3a74426db935bff11e00dac33480748f
treed045535930c528380cb473479deb933b6757fbb5
parent937a0feab42ea76ae2dc6a8b1921ca167b8f9baa
sfc: ensure an extack msg from efx_tc_flower_replace_foreign EOPNOTSUPPs

There were a few places where no extack error message was set, or the
 extack was not forwarded to callees, potentially resulting in a return
 of -EOPNOTSUPP with no additional information.
Make sure to populate the error message in these cases.  In practice
 this does us no good as TC indirect block callbacks don't come with an
 extack to fill in; but maybe they will someday and when debugging it's
 possible to provide a fake extack and emit its message to the console.

Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/tc.c