|
@@ -7437,11 +7437,6 @@ static int i40e_setup_tc_cls_flower(struct i40e_netdev_priv *np,
|
|
{
|
|
{
|
|
struct i40e_vsi *vsi = np->vsi;
|
|
struct i40e_vsi *vsi = np->vsi;
|
|
|
|
|
|
- if (!tc_can_offload(vsi->netdev))
|
|
|
|
- return -EOPNOTSUPP;
|
|
|
|
- if (cls_flower->common.chain_index)
|
|
|
|
- return -EOPNOTSUPP;
|
|
|
|
-
|
|
|
|
switch (cls_flower->command) {
|
|
switch (cls_flower->command) {
|
|
case TC_CLSFLOWER_REPLACE:
|
|
case TC_CLSFLOWER_REPLACE:
|
|
return i40e_configure_clsflower(vsi, cls_flower);
|
|
return i40e_configure_clsflower(vsi, cls_flower);
|
|
@@ -7459,6 +7454,9 @@ static int i40e_setup_tc_block_cb(enum tc_setup_type type, void *type_data,
|
|
{
|
|
{
|
|
struct i40e_netdev_priv *np = cb_priv;
|
|
struct i40e_netdev_priv *np = cb_priv;
|
|
|
|
|
|
|
|
+ if (!tc_cls_can_offload_and_chain0(np->vsi->netdev, type_data))
|
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
+
|
|
switch (type) {
|
|
switch (type) {
|
|
case TC_SETUP_CLSFLOWER:
|
|
case TC_SETUP_CLSFLOWER:
|
|
return i40e_setup_tc_cls_flower(np, type_data);
|
|
return i40e_setup_tc_cls_flower(np, type_data);
|