aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2021-02-14 18:04:58 -0500
committerDavid S. Miller <davem@davemloft.net>2021-02-14 17:27:50 -0800
commite9696ff33c79aed73ff76edb4961042a9b87d27b (patch)
treeacc06bc6604ff871f901adf4718bf496a74e2062 /net/switchdev/switchdev.c
parentdab62e7c2de7b035c928a8babee27a6127891fdf (diff)
downloadlinux-e9696ff33c79aed73ff76edb4961042a9b87d27b.tar.gz
linux-e9696ff33c79aed73ff76edb4961042a9b87d27b.tar.bz2
linux-e9696ff33c79aed73ff76edb4961042a9b87d27b.zip
bnxt_en: Add context memory initialization infrastructure.
Currently, the driver calls memset() to set all relevant context memory used by the chip to the initial value. This can take many milliseconds with the potentially large number of context pages allocated for the chip. To make this faster, we only need to initialize the "context kind" field of each block of context memory. This patch sets up the infrastructure to do that with the bnxt_mem_init structure. In the next patch, we'll add the logic to obtain the offset of the "context kind" from the firmware. This patch is not changing the current behavior of calling memset() to initialize all relevant context memory. Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com> Reviewed-by: Edwin Peer <edwin.peer@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions