rocker: enable support for scattered packets
authorIdo Schimmel <idosch@mellanox.com>
Sun, 2 Aug 2015 18:56:37 +0000 (20:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2015 21:22:25 +0000 (14:22 -0700)
rocker supports the transmission of scattered packets, so let the kernel
know about it by setting the NETIF_F_SG bit in the device's features.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c

index 7b4c3474acfe888665bde2b727d737908e6d789d..730bdc01b94488a540244e54c4c88c4fadb9a7ce 100644 (file)
@@ -4970,7 +4970,7 @@ static int rocker_probe_port(struct rocker *rocker, unsigned int port_number)
                       NAPI_POLL_WEIGHT);
        rocker_carrier_init(rocker_port);
 
-       dev->features |= NETIF_F_NETNS_LOCAL;
+       dev->features |= NETIF_F_NETNS_LOCAL | NETIF_F_SG;
 
        err = register_netdev(dev);
        if (err) {