Message ID | 1432334609-3971-3-git-send-email-aparames@broadcom.com |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/ethtool.c b/ethtool.c index 668c189..6c57297 100644 --- a/ethtool.c +++ b/ethtool.c @@ -2523,6 +2523,12 @@ static int do_sset(struct cmd_context *ctx) memset(&ecmd, 0, sizeof(struct ethtool_cmd)); + if (phyad_wanted != -1) + ecmd.phy_address = phyad_wanted; + + if (port_wanted != -1) + ecmd.port = port_wanted; + ecmd.cmd = ETHTOOL_GSET; err = send_ioctl(ctx, &ecmd); if (err < 0) {