[1/8] common/cnxk: use different macros for sdp and lbk max frames
Checks
Commit Message
From: Satha Rao <skoteshwar@marvell.com>
For SDP interface all platforms supports up to 65535 frame size.
Updated api with new check for SDP interface.
Signed-off-by: Satha Rao <skoteshwar@marvell.com>
---
drivers/common/cnxk/hw/nix.h | 1 +
drivers/common/cnxk/roc_nix.c | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)
Comments
On Wed, Sep 1, 2021 at 10:41 PM <skoteshwar@marvell.com> wrote:
>
> From: Satha Rao <skoteshwar@marvell.com>
>
> For SDP interface all platforms supports up to 65535 frame size.
> Updated api with new check for SDP interface.
>
> Signed-off-by: Satha Rao <skoteshwar@marvell.com>
# Please rebase to dpdk-next-net-mrvl
# Please add this feature support in
doc/guides/rel_notes/release_21_11.rst under "Updated Marvell cnxk
ethdev driver"
# Fix following issues
Error: Incorrect indent at drivers/net/cnxk/meson.build:20
Error: Incorrect indent at drivers/net/cnxk/meson.build:20
WARNING:TYPO_SPELLING: 'aka' may be misspelled - perhaps 'a.k.a.'?
#173: FILE: drivers/net/cnxk/cnxk_tm.c:130:
+ /* Root node, aka TL2(vf)/TL1(pf) */
^^^
@@ -2102,6 +2102,7 @@ struct nix_lso_format {
#define NIX_CN9K_MAX_HW_FRS 9212UL
#define NIX_LBK_MAX_HW_FRS 65535UL
+#define NIX_SDP_MAX_HW_FRS 65535UL
#define NIX_RPM_MAX_HW_FRS 16380UL
#define NIX_MIN_HW_FRS 60UL
@@ -113,10 +113,13 @@ roc_nix_max_pkt_len(struct roc_nix *roc_nix)
{
struct nix *nix = roc_nix_to_nix_priv(roc_nix);
+ if (roc_nix_is_sdp(roc_nix))
+ return NIX_SDP_MAX_HW_FRS;
+
if (roc_model_is_cn9k())
return NIX_CN9K_MAX_HW_FRS;
- if (nix->lbk_link || roc_nix_is_sdp(roc_nix))
+ if (nix->lbk_link)
return NIX_LBK_MAX_HW_FRS;
return NIX_RPM_MAX_HW_FRS;