]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/ethernet/hisilicon/hns/hns_enet.c
net: hns: add phy_attached_info() to the hns driver
[linux.git] / drivers / net / ethernet / hisilicon / hns / hns_enet.c
index 2235dd55fab2d16da36bbeba8b4aa2097cbf800f..a48396dd4ebb2f7c08029eab99d20f3a386fe7a0 100644 (file)
@@ -245,7 +245,7 @@ static int hns_nic_maybe_stop_tso(
        int frag_num;
        struct sk_buff *skb = *out_skb;
        struct sk_buff *new_skb = NULL;
-       struct skb_frag_struct *frag;
+       skb_frag_t *frag;
 
        size = skb_headlen(skb);
        buf_num = (size + BD_MAX_SEND_SIZE - 1) / BD_MAX_SEND_SIZE;
@@ -309,7 +309,7 @@ netdev_tx_t hns_nic_net_xmit_hw(struct net_device *ndev,
        struct hnae_ring *ring = ring_data->ring;
        struct device *dev = ring_to_dev(ring);
        struct netdev_queue *dev_queue;
-       struct skb_frag_struct *frag;
+       skb_frag_t *frag;
        int buf_num;
        int seg_num;
        dma_addr_t dma;
@@ -1182,6 +1182,8 @@ int hns_nic_init_phy(struct net_device *ndev, struct hnae_handle *h)
        if (unlikely(ret))
                return -ENODEV;
 
+       phy_attached_info(phy_dev);
+
        return 0;
 }