rxrpc: Fix the names of the fields in the ACK trailer struct
[linux-2.6-microblaze.git] / net / rxrpc / output.c
index 828b145..3803bf9 100644 (file)
@@ -83,7 +83,7 @@ static size_t rxrpc_fill_out_ack(struct rxrpc_connection *conn,
                                 struct rxrpc_txbuf *txb,
                                 u16 *_rwind)
 {
-       struct rxrpc_ackinfo ackinfo;
+       struct rxrpc_acktrailer trailer;
        unsigned int qsize, sack, wrap, to;
        rxrpc_seq_t window, wtop;
        int rsize;
@@ -126,16 +126,16 @@ static size_t rxrpc_fill_out_ack(struct rxrpc_connection *conn,
        qsize = (window - 1) - call->rx_consumed;
        rsize = max_t(int, call->rx_winsize - qsize, 0);
        *_rwind = rsize;
-       ackinfo.rxMTU           = htonl(rxrpc_rx_mtu);
-       ackinfo.maxMTU          = htonl(mtu);
-       ackinfo.rwind           = htonl(rsize);
-       ackinfo.jumbo_max       = htonl(jmax);
+       trailer.maxMTU          = htonl(rxrpc_rx_mtu);
+       trailer.ifMTU           = htonl(mtu);
+       trailer.rwind           = htonl(rsize);
+       trailer.jumbo_max       = htonl(jmax);
 
        *ackp++ = 0;
        *ackp++ = 0;
        *ackp++ = 0;
-       memcpy(ackp, &ackinfo, sizeof(ackinfo));
-       return txb->ack.nAcks + 3 + sizeof(ackinfo);
+       memcpy(ackp, &trailer, sizeof(trailer));
+       return txb->ack.nAcks + 3 + sizeof(trailer);
 }
 
 /*