~ubuntu-branches/ubuntu/trusty/linux-linaro-omap/trusty

« back to all changes in this revision

Viewing changes to drivers/net/ixgbevf/ixgbevf_main.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-57i0gl3v99b3lkfg
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#include <net/ip6_checksum.h>
45
45
#include <linux/ethtool.h>
46
46
#include <linux/if_vlan.h>
 
47
#include <linux/prefetch.h>
47
48
 
48
49
#include "ixgbevf.h"
49
50
 
1460
1461
        }
1461
1462
}
1462
1463
 
 
1464
static int ixgbevf_write_uc_addr_list(struct net_device *netdev)
 
1465
{
 
1466
        struct ixgbevf_adapter *adapter = netdev_priv(netdev);
 
1467
        struct ixgbe_hw *hw = &adapter->hw;
 
1468
        int count = 0;
 
1469
 
 
1470
        if ((netdev_uc_count(netdev)) > 10) {
 
1471
                printk(KERN_ERR "Too many unicast filters - No Space\n");
 
1472
                return -ENOSPC;
 
1473
        }
 
1474
 
 
1475
        if (!netdev_uc_empty(netdev)) {
 
1476
                struct netdev_hw_addr *ha;
 
1477
                netdev_for_each_uc_addr(ha, netdev) {
 
1478
                        hw->mac.ops.set_uc_addr(hw, ++count, ha->addr);
 
1479
                        udelay(200);
 
1480
                }
 
1481
        } else {
 
1482
                /*
 
1483
                 * If the list is empty then send message to PF driver to
 
1484
                 * clear all macvlans on this VF.
 
1485
                 */
 
1486
                hw->mac.ops.set_uc_addr(hw, 0, NULL);
 
1487
        }
 
1488
 
 
1489
        return count;
 
1490
}
 
1491
 
1463
1492
/**
1464
1493
 * ixgbevf_set_rx_mode - Multicast set
1465
1494
 * @netdev: network interface device structure
1476
1505
        /* reprogram multicast list */
1477
1506
        if (hw->mac.ops.update_mc_addr_list)
1478
1507
                hw->mac.ops.update_mc_addr_list(hw, netdev);
 
1508
 
 
1509
        ixgbevf_write_uc_addr_list(netdev);
1479
1510
}
1480
1511
 
1481
1512
static void ixgbevf_napi_enable_all(struct ixgbevf_adapter *adapter)