]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
qed*: Refactor mf_mode to consist of bits.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Sun, 6 May 2018 01:42:59 +0000 (18:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 May 2018 03:46:10 +0000 (23:46 -0400)
commit0bc5fe857274133ca028ebb15ff2e8549a369916
treeb93099ec5ff96c940f52bbe220651a0f64fd99c7
parent3a443bd6dd7c43bf5763779309514bf3e7c1c3eb
qed*: Refactor mf_mode to consist of bits.

`mf_mode' field indicates the multi-partitioning mode the device is
configured to. This method doesn't scale very well, adding a new MF mode
requires going over all the existing conditions, and deciding whether those
are needed for the new mode or not.
The patch defines a set of bit-fields for modes which are derived according
to the mode info shared by the MFW and all the configuration would be made
according to those. To add a new mode, there would be a single place where
we'll need to go and choose which bits apply and which don't.

Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed.h
drivers/net/ethernet/qlogic/qed/qed_dev.c
drivers/net/ethernet/qlogic/qed/qed_ll2.c
drivers/net/ethernet/qlogic/qed/qed_main.c
drivers/net/ethernet/qlogic/qed/qed_sp.h
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
drivers/net/ethernet/qlogic/qede/qede_main.c
include/linux/qed/qed_if.h