net/ice: refactor Rx FlexiMD handling
authorHaiyue Wang <haiyue.wang@intel.com>
Tue, 22 Sep 2020 06:40:24 +0000 (14:40 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:09 +0000 (19:19 +0200)
commit7a340b0b4e03ba5d308af5698d35f59969f75583
tree2ab22f6894ff009c8ffc01e832954ac77c568296
parentb96646187285b1b593b76af5dbcc365a99900377
net/ice: refactor Rx FlexiMD handling

The hardware supports many kinds of FlexiMDs set into Rx descriptor, and
the FlexiMDs can have different offsets in the descriptor according the
DDP package setting.

The FlexiMDs type and offset are identified by the RXDID, which will be
used to setup the queue.

For expanding to support different RXDIDs in the future, refactor the Rx
FlexiMD handling by the functions mapped to related RXDIDs.

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Jeff Guo <jia.guo@intel.com>
drivers/net/ice/ice_rxtx.c
drivers/net/ice/ice_rxtx.h