~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/net/loopback.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
 
130
130
static const struct ethtool_ops loopback_ethtool_ops = {
131
131
        .get_link               = always_on,
132
 
        .set_tso                = ethtool_op_set_tso,
133
 
        .get_tx_csum            = always_on,
134
 
        .get_sg                 = always_on,
135
 
        .get_rx_csum            = always_on,
136
132
};
137
133
 
138
134
static int loopback_dev_init(struct net_device *dev)
169
165
        dev->type               = ARPHRD_LOOPBACK;      /* 0x0001*/
170
166
        dev->flags              = IFF_LOOPBACK;
171
167
        dev->priv_flags        &= ~IFF_XMIT_DST_RELEASE;
 
168
        dev->hw_features        = NETIF_F_ALL_TSO | NETIF_F_UFO;
172
169
        dev->features           = NETIF_F_SG | NETIF_F_FRAGLIST
173
 
                | NETIF_F_TSO
 
170
                | NETIF_F_ALL_TSO
 
171
                | NETIF_F_UFO
174
172
                | NETIF_F_NO_CSUM
 
173
                | NETIF_F_RXCSUM
175
174
                | NETIF_F_HIGHDMA
176
175
                | NETIF_F_LLTX
177
 
                | NETIF_F_NETNS_LOCAL;
 
176
                | NETIF_F_NETNS_LOCAL
 
177
                | NETIF_F_VLAN_CHALLENGED
 
178
                | NETIF_F_LOOPBACK;
178
179
        dev->ethtool_ops        = &loopback_ethtool_ops;
179
180
        dev->header_ops         = &eth_header_ops;
180
181
        dev->netdev_ops         = &loopback_ops;