]> git.proxmox.com Git - mirror_iproute2.git/commit - misc/ss.c
ss: small optim in tcp_show_info()
authorEric Dumazet <edumazet@google.com>
Wed, 6 May 2015 18:33:23 +0000 (11:33 -0700)
committerStephen Hemminger <shemming@brocade.com>
Mon, 11 May 2015 16:15:08 +0000 (09:15 -0700)
commit656e8fdd2dc00c79602f5bb8567e7771d21fb692
tree5c2b0efcf8925cc8e0a30297ed4fc279e261be2a
parent38a7f268287b57d80950b2036a7877761916752b
ss: small optim in tcp_show_info()

Kernel can give us smaller tcp_info than our.

We copy the kernel provided structure and fill with 0
the remaining part.

Lets clear only the missing part to save some cycles, as we intend to
slightly increase tcp_info size in the future.

Signed-off-by: Eric Dumazet <edumazet@google.com>
misc/ss.c