ntb_netdev.c (8bb5e7f4dcd9b9ef22a3ea25c9066a8a968f12dd) ntb_netdev.c (fb3ceec187e8bca474340e361a18163a2e79c0a2)
1/*
2 * This file is provided under a dual BSD/GPLv2 license. When using or
3 * redistributing this file, you may do so under either license.
4 *
5 * GPL LICENSE SUMMARY
6 *
7 * Copyright(c) 2012 Intel Corporation. All rights reserved.
8 * Copyright (C) 2015 EMC Corporation. All Rights Reserved.

--- 350 unchanged lines hidden (view full) ---

359 .ndo_set_mac_address = eth_mac_addr,
360};
361
362static void ntb_get_drvinfo(struct net_device *ndev,
363 struct ethtool_drvinfo *info)
364{
365 struct ntb_netdev *dev = netdev_priv(ndev);
366
1/*
2 * This file is provided under a dual BSD/GPLv2 license. When using or
3 * redistributing this file, you may do so under either license.
4 *
5 * GPL LICENSE SUMMARY
6 *
7 * Copyright(c) 2012 Intel Corporation. All rights reserved.
8 * Copyright (C) 2015 EMC Corporation. All Rights Reserved.

--- 350 unchanged lines hidden (view full) ---

359 .ndo_set_mac_address = eth_mac_addr,
360};
361
362static void ntb_get_drvinfo(struct net_device *ndev,
363 struct ethtool_drvinfo *info)
364{
365 struct ntb_netdev *dev = netdev_priv(ndev);
366
367 strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver));
368 strlcpy(info->version, NTB_NETDEV_VER, sizeof(info->version));
369 strlcpy(info->bus_info, pci_name(dev->pdev), sizeof(info->bus_info));
367 strscpy(info->driver, KBUILD_MODNAME, sizeof(info->driver));
368 strscpy(info->version, NTB_NETDEV_VER, sizeof(info->version));
369 strscpy(info->bus_info, pci_name(dev->pdev), sizeof(info->bus_info));
370}
371
372static int ntb_get_link_ksettings(struct net_device *dev,
373 struct ethtool_link_ksettings *cmd)
374{
375 ethtool_link_ksettings_zero_link_mode(cmd, supported);
376 ethtool_link_ksettings_add_link_mode(cmd, supported, Backplane);
377 ethtool_link_ksettings_zero_link_mode(cmd, advertising);

--- 119 unchanged lines hidden ---
370}
371
372static int ntb_get_link_ksettings(struct net_device *dev,
373 struct ethtool_link_ksettings *cmd)
374{
375 ethtool_link_ksettings_zero_link_mode(cmd, supported);
376 ethtool_link_ksettings_add_link_mode(cmd, supported, Backplane);
377 ethtool_link_ksettings_zero_link_mode(cmd, advertising);

--- 119 unchanged lines hidden ---