]> git.droids-corp.org - dpdk.git/commit
net/nfp: remove pessimistic limit
authorJin Liu <jin.liu@corigine.com>
Fri, 17 Jun 2022 09:34:34 +0000 (11:34 +0200)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Fri, 17 Jun 2022 13:32:41 +0000 (15:32 +0200)
commitd1de944516a6a9f353b43618b73726f7b232b3d8
tree68bf11967636a5b8ea12edc7972a8646c0cec199
parent38c0e7a009e4fbb9d36b2145c6bbcc48e2caaec8
net/nfp: remove pessimistic limit

Multiple writes cause intermediate pointer values that do not
end on complete TX descriptors.

The QCP peripheral on the NFP provides a number of access
modes. In some access modes, the maximum amount to add must
be restricted to a 6bit value. The particular access mode
used by _nfp_qcp_ptr_add() has no such restrictions, so the
"NFP_QCP_MAX_ADD" test is unnecessary.

Note that trying to add more that the configured ring size
in a single add will cause a QCP overflow, caught and handled
by the QCP peripheral.

Signed-off-by: Jin Liu <jin.liu@corigine.com>
Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund@corigine.com>
drivers/net/nfp/nfp_common.h