Skip to content

Commit

Permalink
rocker: enable support for scattered packets
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ido Schimmel authored and David S. Miller committed Aug 3, 2015
1 parent ba7591d commit 21518a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/rocker/rocker.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 21518a6

Please sign in to comment.