This allows offload entries to be created from user space
Unified · Split
| @@ -563,10 +563,13 @@ mtk_eth_setup_tc_block(struct net_device *dev, struct flow_block_offload *f) · 562 unmodified lines | |||
| 563 | int mtk_eth_setup_tc(struct net_device *dev, enum tc_setup_type type, | 563 | int mtk_eth_setup_tc(struct net_device *dev, enum tc_setup_type type, |
| 564 | void *type_data) | 564 | void *type_data) |
| 565 | { | 565 | { |
| 566 | if (type == TC_SETUP_FT) | 566 | switch (type) { |
| 567 | case TC_SETUP_BLOCK: | ||
| 568 | case TC_SETUP_FT: | ||
| 567 | return mtk_eth_setup_tc_block(dev, type_data); | 569 | return mtk_eth_setup_tc_block(dev, type_data); |
| 568 | 570 | default: | |
| 569 | return -EOPNOTSUPP; | 571 | return -EOPNOTSUPP; |
| 572 | } | ||
| 570 | } | 573 | } |
| 571 | 574 | ||
| 572 | int mtk_eth_offload_init(struct mtk_eth *eth) | 575 | int mtk_eth_offload_init(struct mtk_eth *eth) |