rxrpc: Rewrite the data and ack handling code
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / include / rxrpc / packet.h
index b0ae5c1a6ce6da2f083136d4dc79aa4697aaece0..fd6eb3a60a8c8286d32d1f5eeb2f3dc2c1153b30 100644 (file)
@@ -133,6 +133,13 @@ struct rxrpc_ackpacket {
 
 } __packed;
 
+/* Some ACKs refer to specific packets and some are general and can be updated. */
+#define RXRPC_ACK_UPDATEABLE ((1 << RXRPC_ACK_REQUESTED)       |       \
+                             (1 << RXRPC_ACK_PING_RESPONSE)    |       \
+                             (1 << RXRPC_ACK_DELAY)            |       \
+                             (1 << RXRPC_ACK_IDLE))
+
+
 /*
  * ACK packets can have a further piece of information tagged on the end
  */