Loading drivers/net/mv643xx_eth.c +46 −48 Original line number Diff line number Diff line Loading @@ -1055,7 +1055,6 @@ static inline unsigned int has_tiny_unaligned_frags(struct sk_buff *skb) fragp = &skb_shinfo(skb)->frags[frag]; if (fragp->size <= 8 && fragp->page_offset & 0x7) return 1; } return 0; } Loading Loading @@ -2886,8 +2885,10 @@ static ETH_FUNC_RET_STATUS eth_port_receive(struct mv643xx_private *mp, p_pkt_info->return_info = mp->rx_skb[rx_curr_desc]; p_pkt_info->l4i_chk = p_rx_desc->buf_size; /* Clean the return info field to indicate that the packet has been */ /* moved to the upper layers */ /* * Clean the return info field to indicate that the * packet has been moved to the upper layers */ mp->rx_skb[rx_curr_desc] = NULL; /* Update current index in data structure */ Loading Loading @@ -3119,8 +3120,7 @@ mv643xx_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) return 0; } static void mv643xx_get_drvinfo(struct net_device *netdev, static void mv643xx_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) { strncpy(drvinfo->driver, mv643xx_driver_name, 32); Loading @@ -3130,14 +3130,12 @@ mv643xx_get_drvinfo(struct net_device *netdev, drvinfo->n_stats = MV643XX_STATS_LEN; } static int mv643xx_get_stats_count(struct net_device *netdev) static int mv643xx_get_stats_count(struct net_device *netdev) { return MV643XX_STATS_LEN; } static void mv643xx_get_ethtool_stats(struct net_device *netdev, static void mv643xx_get_ethtool_stats(struct net_device *netdev, struct ethtool_stats *stats, uint64_t *data) { struct mv643xx_private *mp = netdev->priv; Loading @@ -3152,8 +3150,8 @@ mv643xx_get_ethtool_stats(struct net_device *netdev, } } static void mv643xx_get_strings(struct net_device *netdev, uint32_t stringset, uint8_t *data) static void mv643xx_get_strings(struct net_device *netdev, uint32_t stringset, uint8_t *data) { int i; Loading Loading
drivers/net/mv643xx_eth.c +46 −48 Original line number Diff line number Diff line Loading @@ -1055,7 +1055,6 @@ static inline unsigned int has_tiny_unaligned_frags(struct sk_buff *skb) fragp = &skb_shinfo(skb)->frags[frag]; if (fragp->size <= 8 && fragp->page_offset & 0x7) return 1; } return 0; } Loading Loading @@ -2886,8 +2885,10 @@ static ETH_FUNC_RET_STATUS eth_port_receive(struct mv643xx_private *mp, p_pkt_info->return_info = mp->rx_skb[rx_curr_desc]; p_pkt_info->l4i_chk = p_rx_desc->buf_size; /* Clean the return info field to indicate that the packet has been */ /* moved to the upper layers */ /* * Clean the return info field to indicate that the * packet has been moved to the upper layers */ mp->rx_skb[rx_curr_desc] = NULL; /* Update current index in data structure */ Loading Loading @@ -3119,8 +3120,7 @@ mv643xx_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) return 0; } static void mv643xx_get_drvinfo(struct net_device *netdev, static void mv643xx_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) { strncpy(drvinfo->driver, mv643xx_driver_name, 32); Loading @@ -3130,14 +3130,12 @@ mv643xx_get_drvinfo(struct net_device *netdev, drvinfo->n_stats = MV643XX_STATS_LEN; } static int mv643xx_get_stats_count(struct net_device *netdev) static int mv643xx_get_stats_count(struct net_device *netdev) { return MV643XX_STATS_LEN; } static void mv643xx_get_ethtool_stats(struct net_device *netdev, static void mv643xx_get_ethtool_stats(struct net_device *netdev, struct ethtool_stats *stats, uint64_t *data) { struct mv643xx_private *mp = netdev->priv; Loading @@ -3152,8 +3150,8 @@ mv643xx_get_ethtool_stats(struct net_device *netdev, } } static void mv643xx_get_strings(struct net_device *netdev, uint32_t stringset, uint8_t *data) static void mv643xx_get_strings(struct net_device *netdev, uint32_t stringset, uint8_t *data) { int i; Loading