> An RX lock batch still looks up the socket for every packet and takes a > temporary lookup reference, even though the batch already holds a reference > to the locked socket. > > Record the network namespace and packet address tuple when a batch starts. > Reuse the batch socket for later STREAM/RW packets with the same tuple, and > release the batch before looking up a different flow. > > The cached path still traces every packet, takes an skb owner reference, > validates socket state, source and transport, updates credit, and runs the > receive state machine. Only the socket table lookup and its temporary > reference are skipped. > > Signed-off-by: Jia Jia <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=3
