On Mon, 2016-06-27 at 11:31 -0700, Cong Wang wrote: > Not a problem of your patch, but it seems these allocations never > get freed once we start using tcp md5. Maybe we should free them > when the last socket using tcp md5 is gone?
If we constantly allocate-deallocate these tiny blocks for occasional TCP MD5 use, it becomes quite expensive. With current code, only first TCP MD5 usage trigger an extra setup cost.