ip: report IFLA_GSO_MAX_SIZE and IFLA_GSO_MAX_SEGS

kernel support for these attributes was added in linux-4.6

Signed-off-by: Eric Dumazet <edumazet@google.com>
This commit is contained in:
Eric Dumazet 2016-08-17 14:39:21 -07:00 committed by Stephen Hemminger
parent 6b376ebd6e
commit 1acd208c0b
1 changed files with 8 additions and 0 deletions

View File

@ -901,6 +901,14 @@ int print_linkinfo(const struct sockaddr_nl *who,
fprintf(fp, "numrxqueues %u ",
rta_getattr_u32(tb[IFLA_NUM_RX_QUEUES]));
if (tb[IFLA_GSO_MAX_SIZE])
fprintf(fp, "gso_max_size %u ",
rta_getattr_u32(tb[IFLA_GSO_MAX_SIZE]));
if (tb[IFLA_GSO_MAX_SEGS])
fprintf(fp, "gso_max_segs %u ",
rta_getattr_u32(tb[IFLA_GSO_MAX_SEGS]));
if (tb[IFLA_PHYS_PORT_NAME])
fprintf(fp, "portname %s ",
rta_getattr_str(tb[IFLA_PHYS_PORT_NAME]));