aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMichael Chan <[email protected]>2021-02-14 23:04:59 +0000
committerDavid S. Miller <[email protected]>2021-02-15 01:27:51 +0000
commit41435c39400071904a9b569d7bfc053c7c644bc5 (patch)
treeec0620e65d9779b1e9285308495c45f484e005df /net/switchdev/switchdev.c
parentbnxt_en: Add context memory initialization infrastructure. (diff)
downloadkernel-41435c39400071904a9b569d7bfc053c7c644bc5.tar.gz
kernel-41435c39400071904a9b569d7bfc053c7c644bc5.zip
bnxt_en: Initialize "context kind" field for context memory blocks.
If firmware provides the offset to the "context kind" field of the relevant context memory blocks, we'll initialize just that field for each block instead of initializing all of context memory. Populate the bnxt_mem_init structure with the proper offset returned by firmware. If it is older firmware and the information is not available, we set the offset to an invalid value and fall back to the old behavior of initializing every byte. Otherwise, we initialize only the "context kind" byte at the offset. Reviewed-by: Edwin Peer <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions