projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
817b2fd
)
net: ethernet: mtk_eth_soc: support TC_SETUP_BLOCK for PPE offload
author
Felix Fietkau
<nbd@nbd.name>
Tue, 5 Apr 2022 19:57:51 +0000
(21:57 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 6 Apr 2022 13:08:50 +0000
(14:08 +0100)
This allows offload entries to be created from user space
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_ppe_offload.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
b/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
index
0113cdd
..
da3bc93
100644
(file)
--- a/
drivers/net/ethernet/mediatek/mtk_ppe_offload.c
+++ b/
drivers/net/ethernet/mediatek/mtk_ppe_offload.c
@@
-563,10
+563,13
@@
mtk_eth_setup_tc_block(struct net_device *dev, struct flow_block_offload *f)
int mtk_eth_setup_tc(struct net_device *dev, enum tc_setup_type type,
void *type_data)
{
- if (type == TC_SETUP_FT)
+ switch (type) {
+ case TC_SETUP_BLOCK:
+ case TC_SETUP_FT:
return mtk_eth_setup_tc_block(dev, type_data);
-
- return -EOPNOTSUPP;
+ default:
+ return -EOPNOTSUPP;
+ }
}
int mtk_eth_offload_init(struct mtk_eth *eth)