Revert "RTEXT_FILTER_VF doesn't always work with dump request, fixes #354"

This reverts commit 028453c77c.
This commit is contained in:
Piotr Skamruk 2018-07-02 19:45:57 +02:00 committed by Flavio Crisciani
parent 028453c77c
commit 3e48e44812

View File

@ -1553,6 +1553,8 @@ func (h *Handle) LinkList() ([]Link, error) {
msg := nl.NewIfInfomsg(unix.AF_UNSPEC)
req.AddData(msg)
attr := nl.NewRtAttr(unix.IFLA_EXT_MASK, nl.Uint32Attr(nl.RTEXT_FILTER_VF))
req.AddData(attr)
msgs, err := req.Execute(unix.NETLINK_ROUTE, unix.RTM_NEWLINK)
if err != nil {