@@ -1914,7 +1914,7 @@ static int mvneta_rx_refill(struct mvneta_port *pp,
19141914}
19151915
19161916/* Handle tx checksum */
1917- static u32 mvneta_skb_tx_csum (struct mvneta_port * pp , struct sk_buff * skb )
1917+ static u32 mvneta_skb_tx_csum (struct sk_buff * skb )
19181918{
19191919 if (skb -> ip_summed == CHECKSUM_PARTIAL ) {
19201920 int ip_hdr_len = 0 ;
@@ -2595,16 +2595,15 @@ static int mvneta_rx_hwbm(struct napi_struct *napi,
25952595}
25962596
25972597static inline void
2598- mvneta_tso_put_hdr (struct sk_buff * skb ,
2599- struct mvneta_port * pp , struct mvneta_tx_queue * txq )
2598+ mvneta_tso_put_hdr (struct sk_buff * skb , struct mvneta_tx_queue * txq )
26002599{
26012600 int hdr_len = skb_transport_offset (skb ) + tcp_hdrlen (skb );
26022601 struct mvneta_tx_buf * buf = & txq -> buf [txq -> txq_put_index ];
26032602 struct mvneta_tx_desc * tx_desc ;
26042603
26052604 tx_desc = mvneta_txq_next_desc_get (txq );
26062605 tx_desc -> data_size = hdr_len ;
2607- tx_desc -> command = mvneta_skb_tx_csum (pp , skb );
2606+ tx_desc -> command = mvneta_skb_tx_csum (skb );
26082607 tx_desc -> command |= MVNETA_TXD_F_DESC ;
26092608 tx_desc -> buf_phys_addr = txq -> tso_hdrs_phys +
26102609 txq -> txq_put_index * TSO_HEADER_SIZE ;
@@ -2681,7 +2680,7 @@ static int mvneta_tx_tso(struct sk_buff *skb, struct net_device *dev,
26812680 hdr = txq -> tso_hdrs + txq -> txq_put_index * TSO_HEADER_SIZE ;
26822681 tso_build_hdr (skb , hdr , & tso , data_left , total_len == 0 );
26832682
2684- mvneta_tso_put_hdr (skb , pp , txq );
2683+ mvneta_tso_put_hdr (skb , txq );
26852684
26862685 while (data_left > 0 ) {
26872686 int size ;
@@ -2799,7 +2798,7 @@ static netdev_tx_t mvneta_tx(struct sk_buff *skb, struct net_device *dev)
27992798 /* Get a descriptor for the first part of the packet */
28002799 tx_desc = mvneta_txq_next_desc_get (txq );
28012800
2802- tx_cmd = mvneta_skb_tx_csum (pp , skb );
2801+ tx_cmd = mvneta_skb_tx_csum (skb );
28032802
28042803 tx_desc -> data_size = skb_headlen (skb );
28052804
0 commit comments