Skip to content

Commit d863ca6

Browse files
tititiou36davem330
authored andcommitted
octeontx2-af: Add a 'rvu_free_bitmap()' function
In order to match 'rvu_alloc_bitmap()', add a 'rvu_free_bitmap()' function Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7db8263 commit d863ca6

File tree

2 files changed

+6
-0
lines changed
  • drivers/net/ethernet/marvell/octeontx2/af

2 files changed

+6
-0
lines changed

drivers/net/ethernet/marvell/octeontx2/af/rvu.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ int rvu_alloc_bitmap(struct rsrc_bmap *rsrc)
211211
return 0;
212212
}
213213

214+
void rvu_free_bitmap(struct rsrc_bmap *rsrc)
215+
{
216+
kfree(rsrc->bmap);
217+
}
218+
214219
/* Get block LF's HW index from a PF_FUNC's block slot number */
215220
int rvu_get_lf(struct rvu *rvu, struct rvu_block *block, u16 pcifunc, u16 slot)
216221
{

drivers/net/ethernet/marvell/octeontx2/af/rvu.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ static inline bool is_rvu_fwdata_valid(struct rvu *rvu)
638638
}
639639

640640
int rvu_alloc_bitmap(struct rsrc_bmap *rsrc);
641+
void rvu_free_bitmap(struct rsrc_bmap *rsrc);
641642
int rvu_alloc_rsrc(struct rsrc_bmap *rsrc);
642643
void rvu_free_rsrc(struct rsrc_bmap *rsrc, int id);
643644
bool is_rsrc_free(struct rsrc_bmap *rsrc, int id);

0 commit comments

Comments
 (0)