[PATCH 20.11] net/hns3: fix LRO offload to report
Luca Boccassi
luca.boccassi at gmail.com
Wed Nov 15 12:49:06 CET 2023
On Wed, 15 Nov 2023 at 10:05, Huisong Li <lihuisong at huawei.com> wrote:
>
> [upstream commit a4b2c6815abd3e39daca2e2c93334b813e6a0be4]
>
> Some network engines, like part of HIP09, may not support LRO
> offload, but this offload capability is also reported to user.
> So this patch determines whether driver reports this capability
> based on the capabilities from firmware.
>
> In addition, some network engines, like HIP08, always support LRO
> offload and their firmware don't report this capability. So this
> patch has to move getting revision ID codes to earlier stage and set
> default capabilities for these network engines based on revision ID.
>
> Fixes: ab2e2e344163 ("net/hns3: get device capability in primary process")
> Fixes: f5ed7d99cf45 ("net/hns3: extract common function to obtain revision ID")
>
> Signed-off-by: Huisong Li <lihuisong at huawei.com>
> Signed-off-by: Jie Hai <haijie1 at huawei.com>
> ---
> drivers/net/hns3/hns3_cmd.c | 18 +++++++++--
> drivers/net/hns3/hns3_cmd.h | 1 +
> drivers/net/hns3/hns3_ethdev.c | 50 +++++++++++++++++++------------
> drivers/net/hns3/hns3_ethdev.h | 5 ++++
> drivers/net/hns3/hns3_ethdev_vf.c | 28 ++++++-----------
> drivers/net/hns3/hns3_rxtx.c | 3 ++
> 6 files changed, 65 insertions(+), 40 deletions(-)
Thanks, applied
More information about the stable
mailing list