diff options
| author | Jack F Vogel <jfv@FreeBSD.org> | 2011-01-24 18:07:57 +0000 |
|---|---|---|
| committer | Jack F Vogel <jfv@FreeBSD.org> | 2011-01-24 18:07:57 +0000 |
| commit | 5b6960449a059aafc6337e8c348b5f53e07f5166 (patch) | |
| tree | c0ffa1feaa72751eb2a402d029de2653737a4f07 /sys/dev/ixgbe | |
| parent | 9b0c7e8813acee1503e23a2eeea60e8f81224946 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ixgbe')
| -rw-r--r-- | sys/dev/ixgbe/ixgbe.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ixgbe/ixgbe.c b/sys/dev/ixgbe/ixgbe.c index 2867b7e8aa72..b089450374d3 100644 --- a/sys/dev/ixgbe/ixgbe.c +++ b/sys/dev/ixgbe/ixgbe.c @@ -5267,13 +5267,17 @@ static int ixgbe_set_flowcntl(SYSCTL_HANDLER_ARGS) { int error; + int last = ixgbe_flow_control; struct adapter *adapter; error = sysctl_handle_int(oidp, &ixgbe_flow_control, 0, req); - if (error) return (error); + /* Don't bother if it's not changed */ + if (ixgbe_flow_control == last) + return (0); + adapter = (struct adapter *) arg1; switch (ixgbe_flow_control) { case ixgbe_fc_rx_pause: |
