Skip to content

Commit

Permalink
net: bcmgenet: Turn on offloads by default
Browse files Browse the repository at this point in the history
We can turn on the RX/TX checksum offloads and the scatter/gather
features by default and make sure that those are properly reflected
back to e.g: stacked devices such as VLAN.

Signed-off-by: Doug Berger <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Doug Berger authored and davem330 committed Dec 20, 2019
1 parent 206f54b commit ae895c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/net/ethernet/broadcom/genet/bcmgenet.c
Original file line number Diff line number Diff line change
Expand Up @@ -3530,9 +3530,11 @@ static int bcmgenet_probe(struct platform_device *pdev)

priv->msg_enable = netif_msg_init(-1, GENET_MSG_DEFAULT);

/* Set hardware features */
dev->hw_features |= NETIF_F_SG | NETIF_F_HIGHDMA | NETIF_F_HW_CSUM |
NETIF_F_RXCSUM;
/* Set default features */
dev->features |= NETIF_F_SG | NETIF_F_HIGHDMA | NETIF_F_HW_CSUM |
NETIF_F_RXCSUM;
dev->hw_features |= dev->features;
dev->vlan_features |= dev->features;

/* Request the WOL interrupt and advertise suspend if available */
priv->wol_irq_disabled = true;
Expand Down

0 comments on commit ae895c4

Please sign in to comment.