]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: remove unnecessary memory writes of the next to clean pointer
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Thu, 14 Jan 2021 14:33:15 +0000 (14:33 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 9 Feb 2021 01:19:03 +0000 (17:19 -0800)
commit7659602c5a76be8071b2a5d7cfe69eb2612f171e
tree5e149b07ad1fbf73fc60def035f923ae88593e83
parent8da07f02439d5b42a93137ca6afbdda1fc2283b5
i40e: remove unnecessary memory writes of the next to clean pointer

For performance reasons, avoid writing the ring next-to-clean pointer
value back to memory on every update, as it is not really necessary.
Instead, simply read it at initialization into a local copy, update
the local copy as necessary and write the local copy back to memory
after the last update.

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Tested-by: Kiran Bhandare <kiranx.bhandare@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_xsk.c