Skip to content
Snippets Groups Projects
Commit 77ca0b62 authored by Aastha Mehta's avatar Aastha Mehta
Browse files

update API to adjust copied_seq

parent 1c8edca9
No related branches found
No related tags found
No related merge requests found
......@@ -74,9 +74,11 @@ int ptcp_rx_adjust_skb_size(struct sock *sk, struct sk_buff *skb, int req_len,
}
EXPORT_SYMBOL(ptcp_rx_adjust_skb_size);
int ptcp_rx_adjust_copied_seq(struct sock *sk, struct sk_buff *skb, int old_skb_len)
int ptcp_rx_adjust_copied_seq(struct sock *sk, struct sk_buff *skb,
int old_skb_len, int new_skb_len)
{
return call_ptcp_int_hook(rx_adjust_copied_seq, -1, sk, skb, old_skb_len);
return call_ptcp_int_hook(rx_adjust_copied_seq, -1, sk, skb, old_skb_len,
new_skb_len);
}
EXPORT_SYMBOL(ptcp_rx_adjust_copied_seq);
......
......@@ -21,7 +21,8 @@ int ptcp_rx_disable_coalesce(struct sock *sk, struct sk_buff *to,
struct sk_buff *from);
int ptcp_rx_adjust_skb_size(struct sock *sk, struct sk_buff *skb, int req_len,
int offset, int chunk, int copied, int flags);
int ptcp_rx_adjust_copied_seq(struct sock *sk, struct sk_buff *skb, int old_skb_len);
int ptcp_rx_adjust_copied_seq(struct sock *sk, struct sk_buff *skb,
int old_skb_len, int new_skb_len);
int ptcp_tx_adjust_skb_size(struct sock *sk, int size, gfp_t gfp,
bool force_schedule);
......
......@@ -66,14 +66,14 @@ ptcp_impl_rx_adjust_skb_size(struct sock *sk, struct sk_buff *skb, int req_len,
}
int (*lnk_rx_adjust_copied_seq) (struct sock *sk, struct sk_buff *skb,
int old_skb_len) = 0;
int old_skb_len, int new_skb_len) = 0;
EXPORT_SYMBOL(lnk_rx_adjust_copied_seq);
static int
ptcp_impl_rx_adjust_copied_seq (struct sock *sk, struct sk_buff *skb,
int old_skb_len)
int old_skb_len, int new_skb_len)
{
if (lnk_rx_adjust_copied_seq) {
return lnk_rx_adjust_copied_seq(sk, skb, old_skb_len);
return lnk_rx_adjust_copied_seq(sk, skb, old_skb_len, new_skb_len);
}
return -1;
......
......@@ -30,7 +30,8 @@ union ptcp_list_options {
struct sk_buff *from);
int (*rx_adjust_skb_size) (struct sock *sk, struct sk_buff *skb, int req_len,
int offset, int chunk, int copied, int flags);
int (*rx_adjust_copied_seq) (struct sock *sk, struct sk_buff *skb, int old_skb_len);
int (*rx_adjust_copied_seq) (struct sock *sk, struct sk_buff *skb,
int old_skb_len, int new_skb_len);
int (*tx_adjust_skb_size) (struct sock *sk, int size, gfp_t gfp,
bool force_schedule);
int (*tx_adjust_seq) (struct sock *sk, struct sk_buff *skb, int copy, int copied);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment