On Fri, Apr 16, 2021 at 03:44:06PM +0300, Lucian Cristian wrote: > This fixes Hardware Offload on MT7621
I have already applied the fix for it in pending-5.10: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=7f703716ae0e4cb4810eff37605b7594cef1edb8 For the future, and to still give you review: You shouldn't modify patches in backport-* as they represent commits in linux.git and for sake of maintainability it's good to keep them exactly as present in linux.git history so we can easily spot and remove them once they trickly down into linux-stable). Cheers Daniel > > Signed-off-by: Lucian Cristian <lucian.crist...@gmail.com> > diff --git > a/target/linux/generic/backport-5.10/610-v5.13-33-net-ethernet-mtk_eth_soc-add-flow-offloading-support.patch > > b/target/linux/generic/backport-5.10/610-v5.13-33-net-ethernet-mtk_eth_soc-add-flow-offloading-support.patch > index 82e3ddec3f..660ac77dce 100644 > --- > a/target/linux/generic/backport-5.10/610-v5.13-33-net-ethernet-mtk_eth_soc-add-flow-offloading-support.patch > +++ > b/target/linux/generic/backport-5.10/610-v5.13-33-net-ethernet-mtk_eth_soc-add-flow-offloading-support.patch > @@ -127,7 +127,7 @@ Signed-off-by: Pablo Neira Ayuso <pa...@netfilter.org> > + > +static const struct rhashtable_params mtk_flow_ht_params = { > + .head_offset = offsetof(struct mtk_flow_entry, node), > -+ .head_offset = offsetof(struct mtk_flow_entry, cookie), > ++ .key_offset = offsetof(struct mtk_flow_entry, cookie), > + .key_len = sizeof(unsigned long), > + .automatic_shrinking = true, > +}; > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel