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>
Acked-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
#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
{
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;