tcp: replace cnt & rtt with struct in pkts_acked()
[deliverable/linux.git] / include / net / tcp.h
index 4775a1bba7f7a77670594b6b0c7b838634bc1ab6..c9ab561387c48ae7649fbeb1404e9bf8e3b96d90 100644 (file)
@@ -854,6 +854,11 @@ enum tcp_ca_ack_event_flags {
 
 union tcp_cc_info;
 
+struct ack_sample {
+       u32 pkts_acked;
+       s32 rtt_us;
+};
+
 struct tcp_congestion_ops {
        struct list_head        list;
        u32 key;
@@ -877,7 +882,7 @@ struct tcp_congestion_ops {
        /* new value of cwnd after loss (optional) */
        u32  (*undo_cwnd)(struct sock *sk);
        /* hook for packet ack accounting (optional) */
-       void (*pkts_acked)(struct sock *sk, u32 num_acked, s32 rtt_us);
+       void (*pkts_acked)(struct sock *sk, const struct ack_sample *sample);
        /* get info for inet_diag (optional) */
        size_t (*get_info)(struct sock *sk, u32 ext, int *attr,
                           union tcp_cc_info *info);
This page took 0.031224 seconds and 5 git commands to generate.