ibmvnic: convert rxpool ltb to a set of ltbs

Define and use interfaces that treat the long term buffer (LTB) of an
rxpool as a set of LTBs rather than a single LTB. The set only has one
LTB for now.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Signed-off-by: Dany Madden <drt@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Sukadev Bhattiprolu
2022-04-13 13:10:24 -04:00
committed by Jakub Kicinski
parent 0c91bf9ceb
commit d6b4585090
2 changed files with 45 additions and 6 deletions

View File

@@ -798,6 +798,11 @@ struct ibmvnic_long_term_buff {
u8 map_id;
};
struct ibmvnic_ltb_set {
int num_ltbs;
struct ibmvnic_long_term_buff *ltbs;
};
struct ibmvnic_tx_buff {
struct sk_buff *skb;
int index;
@@ -833,7 +838,7 @@ struct ibmvnic_rx_pool {
int next_free;
int next_alloc;
int active;
struct ibmvnic_long_term_buff long_term_buff;
struct ibmvnic_ltb_set ltb_set;
} ____cacheline_aligned;
struct ibmvnic_vpd {