cxgbe/t4_tom: Catch up with r344433, which removed tcb_autorcvbuf_inc.
The declaration in tcp_var.h is still around so t4_tom continued to compile but wouldn't load. A separate commit will fix tcp_var.h Reported By: Dustin Marquess (dmarquess at gmail) Sponsored by: Chelsio Communications
This commit is contained in:
parent
a32dbad556
commit
be09e82abb
@ -230,6 +230,7 @@ struct tom_tunables {
|
||||
int tx_align;
|
||||
int tx_zcopy;
|
||||
int cop_managed_offloading;
|
||||
int autorcvbuf_inc;
|
||||
};
|
||||
/* iWARP driver tunables */
|
||||
struct iw_tunables {
|
||||
|
@ -6266,6 +6266,11 @@ t4_sysctls(struct adapter *sc)
|
||||
&sc->tt.cop_managed_offloading, 0,
|
||||
"COP (Connection Offload Policy) controls all TOE offload");
|
||||
|
||||
sc->tt.autorcvbuf_inc = 16 * 1024;
|
||||
SYSCTL_ADD_INT(ctx, children, OID_AUTO, "autorcvbuf_inc",
|
||||
CTLFLAG_RW, &sc->tt.autorcvbuf_inc, 0,
|
||||
"autorcvbuf increment");
|
||||
|
||||
SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "timer_tick",
|
||||
CTLTYPE_STRING | CTLFLAG_RD, sc, 0, sysctl_tp_tick, "A",
|
||||
"TP timer tick (us)");
|
||||
|
@ -1631,7 +1631,7 @@ do_rx_data(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
|
||||
sb->sb_hiwat < V_tcp_autorcvbuf_max &&
|
||||
len > (sbspace(sb) / 8 * 7)) {
|
||||
unsigned int hiwat = sb->sb_hiwat;
|
||||
unsigned int newsize = min(hiwat + V_tcp_autorcvbuf_inc,
|
||||
unsigned int newsize = min(hiwat + sc->tt.autorcvbuf_inc,
|
||||
V_tcp_autorcvbuf_max);
|
||||
|
||||
if (!sbreserve_locked(sb, newsize, so, NULL))
|
||||
|
@ -549,8 +549,9 @@ handle_ddp_data(struct toepcb *toep, __be32 ddp_report, __be32 rcv_nxt, int len)
|
||||
V_tcp_do_autorcvbuf &&
|
||||
sb->sb_hiwat < V_tcp_autorcvbuf_max &&
|
||||
len > (sbspace(sb) / 8 * 7)) {
|
||||
struct adapter *sc = td_adapter(toep->td);
|
||||
unsigned int hiwat = sb->sb_hiwat;
|
||||
unsigned int newsize = min(hiwat + V_tcp_autorcvbuf_inc,
|
||||
unsigned int newsize = min(hiwat + sc->tt.autorcvbuf_inc,
|
||||
V_tcp_autorcvbuf_max);
|
||||
|
||||
if (!sbreserve_locked(sb, newsize, so, NULL))
|
||||
|
@ -1588,7 +1588,7 @@ do_rx_tls_cmp(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
|
||||
sb->sb_hiwat < V_tcp_autorcvbuf_max &&
|
||||
sb_length > (sbspace(sb) / 8 * 7)) {
|
||||
unsigned int hiwat = sb->sb_hiwat;
|
||||
unsigned int newsize = min(hiwat + V_tcp_autorcvbuf_inc,
|
||||
unsigned int newsize = min(hiwat + sc->tt.autorcvbuf_inc,
|
||||
V_tcp_autorcvbuf_max);
|
||||
|
||||
if (!sbreserve_locked(sb, newsize, so, NULL))
|
||||
|
Loading…
x
Reference in New Issue
Block a user