Skip to content

Commit

Permalink
bwrap: forward get_lut request to embedded host adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppelettieri committed Aug 24, 2020
1 parent 42785fd commit bb351c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sys/dev/netmap/netmap_bdg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,11 @@ netmap_bwrap_config(struct netmap_adapter *na, struct nm_config_info *info)
struct netmap_adapter *hwna = bna->hwna;
int error;

/* cache the lut in the embedded host adapter */
error = netmap_mem_get_lut(hwna->nm_mem, &bna->host.up.na_lut);
if (error)
return error;

/* Forward the request to the hwna. It may happen that nobody
* registered hwna yet, so netmap_mem_get_lut() may have not
* been called yet. */
Expand Down

0 comments on commit bb351c2

Please sign in to comment.