From: Ken-ichirou MATSUZAWA <[email protected]> Date: Thu, 20 Aug 2015 16:07:33 +0900
> I don't know the intension of setting VALID status in the skb > destructor. But I think it need to be set UNUSED status in case of > error then release skb, or rx ring might be filled with RESERVED > frames. > > Signed-off-by: Ken-ichirou MATSUZAWA <[email protected]> I think the idea is to have the user process this "zero length" frame and advance the status itself. I think it is probably racy and problematic to have the kernel set a frame's state to UNUSED. It is not a valid state transition for the kernel side of RX ring processing. Only the user can safely release ring entries back to the kernel. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
