diff options
author | Yinjun Zhang <yinjun.zhang@corigine.com> | 2022-03-09 14:55:33 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-03-10 20:25:18 -0800 |
commit | 87ed3de674c69f4d998a6e0e1eb04e008ca93f84 (patch) | |
tree | c7c5b71e5d5e69ac01462cb7877f6e879f856626 /drivers/ptp | |
parent | 4c7d2e179576e821b461bb4a58d0a834916601fa (diff) |
nfp: xsk: fix a warning when allocating rx rings
Previous commits introduced AF_XDP zero-copy support, in which
we need register different mem model for xdp_rxq when AF_XDP
zero-copy is enabled or not. And this should be done after xdp_rxq
info is registered, which is not needed for ctrl port, otherwise
there complaints warnings: "Missing register, driver bug".
Fix this by not registering mem model for ctrl port, just like we
don't register xdp_rxq info for ctrl port.
Fixes: 6402528b7a0b ("nfp: xsk: add AF_XDP zero-copy Rx and Tx support")
Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20220309135533.10162-1-simon.horman@corigine.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/ptp')
0 files changed, 0 insertions, 0 deletions