]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: xilinx: axienet: Get coalesce parameters from driver state
authorSean Anderson <sean.anderson@linux.dev>
Thu, 6 Feb 2025 20:10:35 +0000 (15:10 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 11 Feb 2025 02:53:40 +0000 (18:53 -0800)
commiteb80520e8a5be676cd546c2503aa78653ff4b026
tree34077209dd83a31f46ca581b797710dd57753f23
parentd048c717df33baf337a58b5d74c855a74abf4e04
net: xilinx: axienet: Get coalesce parameters from driver state

The cr variables now contain the same values as the control registers
themselves. Extract/calculate the values from the variables instead of
saving the user-specified values. This allows us to remove some
bookeeping, and also lets the user know what the actual coalesce
settings are.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed by: Shannon Nelson <shannon.nelson@amd.com>
Link: https://patch.msgid.link/20250206201036.1516800-4-sean.anderson@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c