From c26476a2fd61bc61df9d54e43cbd01883d68d0cb Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Mon, 29 May 2023 06:51:42 +0000 Subject: [PATCH] chore(netlink): remove unused link fields --- internal/netlink/link.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/internal/netlink/link.go b/internal/netlink/link.go index e28bc69f..46dd4547 100644 --- a/internal/netlink/link.go +++ b/internal/netlink/link.go @@ -8,9 +8,6 @@ type Link struct { Index int EncapType string MTU uint16 - - NetNsID int - TxQLen int } func (n *NetLink) LinkList() (links []Link, err error) { @@ -92,8 +89,6 @@ func netlinkLinkToLink(netlinkLink netlink.Link) Link { Index: attributes.Index, EncapType: attributes.EncapType, MTU: uint16(attributes.MTU), - NetNsID: attributes.NetNsID, - TxQLen: attributes.TxQLen, } } @@ -106,13 +101,11 @@ func linkToNetlinkLink(link *Link) netlink.Link { } return &netlinkLinkImpl{ linkType: link.Type, - attrs: &netlink.LinkAttrs{ // TODO get all original attributes + attrs: &netlink.LinkAttrs{ Name: link.Name, Index: link.Index, EncapType: link.EncapType, MTU: int(link.MTU), - NetNsID: link.NetNsID, - TxQLen: link.TxQLen, }, } }