Skip to content

Commit

Permalink
remove status page attribute
Browse files Browse the repository at this point in the history
'status' was only used for debugging the custom memory management,
(which is going away soon) and served no functional purpose. Remove it.

Signed-off-by: Andrew Cooks <acooks@gmail.com>
  • Loading branch information
acooks committed Jan 28, 2024
1 parent 344cf99 commit 3d14ee2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions tn40.c
Original file line number Diff line number Diff line change
Expand Up @@ -1663,7 +1663,6 @@ static int bdx_rx_alloc_pages(struct bdx_priv *priv)
if (bdx_rx_alloc_page(priv, bdx_page) == 0) {
list_add_tail(&bdx_page->free,
&priv->rx_page_table.free_list);
bdx_page->status = 'F';
priv->rx_page_table.nFrees += 1;
} else {
netdev_err(priv->ndev,
Expand Down Expand Up @@ -1744,7 +1743,6 @@ static struct bdx_page *bdx_rx_get_page(struct bdx_priv *priv)
rPage = ((struct bdx_page *)pos);
netdev_dbg(priv->ndev, "nLoops %d ", nLoops);
list_del(pos);
rPage->status = ' ';
priv->rx_page_table.nFrees -= 1;
bdx_rx_ref_page(rPage);
break;
Expand All @@ -1766,7 +1764,6 @@ static struct bdx_page *bdx_rx_get_page(struct bdx_priv *priv)
if (bdx_rx_alloc_page(priv, firstPage) == 0) {
rPage = firstPage;
list_del((struct list_head *)rPage);
rPage->status = ' ';
priv->rx_page_table.nFrees -= 1;
bdx_rx_ref_page(rPage);
} else {
Expand All @@ -1790,7 +1787,6 @@ static void bdx_rx_reuse_page(struct bdx_priv *priv, struct rx_map *dm)
dm->bdx_page->reuse_tries = 0;
list_add_tail(&dm->bdx_page->free,
&priv->rx_page_table.free_list);
dm->bdx_page->status = 'F';
priv->rx_page_table.nFrees += 1;
}

Expand Down
1 change: 0 additions & 1 deletion tn40.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ struct bdx_page {
int ref_count;
int reuse_tries;
int page_index;
char status;
struct page *page;
u64 dma;
};
Expand Down

0 comments on commit 3d14ee2

Please sign in to comment.