]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
qed: Optimize qed_chain datapath usage
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Tue, 29 Nov 2016 14:47:01 +0000 (16:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 19:32:02 +0000 (14:32 -0500)
commit6d937acfb3f166f6e10abd978fafafa120d6f0d7
treefe7e9629390c6ce77bcdc3bd772bceeff48414a4
parent01e23015a97c46ea376aacde549510b336bd5987
qed: Optimize qed_chain datapath usage

The chain structure and functions are widely used by the qed* modules,
both for configuration and datapath.
E.g., qede's Tx has one such chain and its Rx has two.

Currently, the strucutre's fields which are required for datapath
related functions [produce/consume] are intertwined with fields which
are required only for configuration purposes [init/destroy/etc.].

This patch re-arranges the chain structure so that all the fields which
are required for datapath usage could reside in a single cacheline instead
of the two which are required today.

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_dev.c
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
include/linux/qed/qed_chain.h