]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qede: Refactor data-path Rx flow
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Tue, 29 Nov 2016 14:47:04 +0000 (16:47 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 6 Mar 2017 05:00:16 +0000 (21:00 -0800)
commit13aa41fca78435b0d70e7589b8cb11e9deb07fb8
treeab451c2710abd1bc07eed2a97c9dd44e0e46817f
parente1e8f694ede68cab934dd480df6ca55a11f29c12
qede: Refactor data-path Rx flow

Orabug: 25477939

Driver's NAPI poll is using a long sequence for processing ingress
packets, and it's going to get even longer once we do XDP.
Break down the main loop into a series of sub-functions to allow
better readability of the function.

While we're at it, correct the accounting of the NAPI budget -
currently we're counting only packets passed to the stack against
the budget, even in case those are actually aggregations.
After refactoring every CQE processed would be counted against the budget.

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit f4fad34c0e45b3e30d2b5312d545e2d416778c7b)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
drivers/net/ethernet/qlogic/qede/qede_main.c
drivers/net/ethernet/qlogic/qede/kcompat.h [new file with mode: 0644]
drivers/net/ethernet/qlogic/qede/qede_main.c