Gerrit Renker
6fdd34d43b
dccp ccid-2: Phase out the use of boolean Ack Vector sysctl
...
This removes the use of the sysctl and the minisock variable for the Send Ack
Vector feature, as it now is handled fully dynamically via feature negotiation
(i.e. when CCID-2 is enabled, Ack Vectors are automatically enabled as per
RFC 4341, 4.).
Using a sysctl in parallel to this implementation would open the door to
crashes, since much of the code relies on tests of the boolean minisock /
sysctl variable. Thus, this patch replaces all tests of type
if (dccp_msk(sk)->dccpms_send_ack_vector)
/* ... */
with
if (dp->dccps_hc_rx_ackvec != NULL)
/* ... */
The dccps_hc_rx_ackvec is allocated by the dccp_hdlr_ackvec() when feature
negotiation concluded that Ack Vectors are to be used on the half-connection.
Otherwise, it is NULL (due to dccp_init_sock/dccp_create_openreq_child),
so that the test is a valid one.
The activation handler for Ack Vectors is called as soon as the feature
negotiation has concluded at the
* server when the Ack marking the transition RESPOND => OPEN arrives;
* client after it has sent its ACK, marking the transition REQUEST => PARTOPEN.
Adding the sequence number of the Response packet to the Ack Vector has been
removed, since
(a) connection establishment implies that the Response has been received;
(b) the CCIDs only look at packets received in the (PART)OPEN state, i.e.
this entry will always be ignored;
(c) it can not be used for anything useful - to detect loss for instance, only
packets received after the loss can serve as pseudo-dupacks.
There was a FIXME to change the error code when dccp_ackvec_add() fails.
I removed this after finding out that:
* the check whether ackno < ISN is already made earlier,
* this Response is likely the 1st packet with an Ackno that the client gets,
* so when dccp_ackvec_add() fails, the reason is likely not a packet error.
Signed-off-by: Gerrit Renker <[email protected] >
Acked-by: Ian McDonald <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2008-12-08 01:19:06 -08:00
..
ABI
Add c2 port support
2008-11-12 17:17:18 -08:00
accounting
.gitignore updates
2008-10-30 11:38:45 -07:00
acpi
ACPI: update debug parameter documentation
2008-11-07 21:45:29 -05:00
aoe
arm
[ARM] 5323/1: Remove outdated empeg documentation.
2008-10-29 22:00:39 +00:00
auxdisplay
.gitignore updates
2008-10-30 11:38:45 -07:00
blackfin
Blackfin arch: add supporting for kgdb
2008-10-13 14:07:19 +08:00
block
Merge branch 'docs' of git://git.lwn.net/linux-2.6
2008-10-16 12:18:16 -07:00
blockdev
Create/use more directory structure in the Documentation/ tree.
2008-11-14 17:28:53 +00:00
cdrom
doc/cdrom: Trvial documentation error, file not present
2008-10-10 08:22:44 +02:00
cgroups
freezer_cg: disable writing freezer.state of root cgroup
2008-11-12 17:17:16 -08:00
connector
.gitignore updates
2008-10-30 11:38:45 -07:00
console
controllers
memcg: avoid accounting special pages
2008-10-20 08:52:38 -07:00
cpu-freq
[CPUFREQ] Documentation: Add Blackfin to list of supported processors
2008-11-25 13:38:29 -05:00
cpuidle
cris
fix random typos
2008-10-16 11:21:30 -07:00
crypto
development-process
Add the development process document
2008-10-16 11:51:30 -06:00
device-mapper
DocBook
WAN: syncppp.c is no longer used by any kernel code. Remove it.
2008-11-22 02:49:48 +01:00
driver-model
dvb
early-userspace
fault-injection
fb
uvesafb: document mode to mode_option parameter change
2008-10-16 11:21:44 -07:00
filesystems
epoll: introduce resource usage limits
2008-12-01 19:55:24 -08:00
firmware_class
frv
hwmon
adt7462: new hwmon driver
2008-11-12 17:17:17 -08:00
i2c
i2c: The i2c mailing list is moving
2008-10-30 15:55:47 +01:00
i2o
ia64
.gitignore updates
2008-10-30 11:38:45 -07:00
ide
infiniband
input
Input: fix the example of an input device driver
2008-11-11 11:41:49 -05:00
ioctl
Create/use more directory structure in the Documentation/ tree.
2008-11-14 17:28:53 +00:00
isdn
Rationalise Randy's address a bit
2008-10-30 11:38:47 -07:00
ja_JP
HOWTO: Sync patch for jp_JP/HOWTO
2008-10-29 15:03:50 -07:00
kbuild
kdump
powerpc: Support for relocatable kdump kernel
2008-10-22 15:01:22 +11:00
ko_KR
laptops
Merge branch 'linus' into test
2008-10-23 00:11:07 -04:00
lguest
lguest: fix example launcher compile after moved asm-x86 dir.
2008-10-31 11:24:27 +11:00
m68k
make
mips
mn10300
mtd
[MTD] [NAND] nand_ecc.c: rewrite for improved performance
2008-08-16 10:55:33 +01:00
namespaces
netlabel
networking
dccp ccid-2: Phase out the use of boolean Ack Vector sysctl
2008-12-08 01:19:06 -08:00
parisc
PCI
Create/use more directory structure in the Documentation/ tree.
2008-11-14 17:28:53 +00:00
pcmcia
.gitignore updates
2008-10-30 11:38:45 -07:00
power
pm: document use of RTC in pm_trace
2008-10-16 11:21:29 -07:00
powerpc
powerpc: Repair device bindings documentation
2008-11-10 15:17:52 -06:00
prctl
RCU
rcu: documents rculist_nulls
2008-11-16 19:41:14 -08:00
s390
[S390] cio: Exorcise cio_msg= from documentation.
2008-10-10 21:33:49 +02:00
scheduler
sched: remove sched-design.txt from 00-INDEX
2008-10-30 11:37:58 +01:00
scsi
Rationalise Randy's address a bit
2008-10-30 11:38:47 -07:00
serial
Create/use more directory structure in the Documentation/ tree.
2008-11-14 17:28:53 +00:00
sh
sh: Kill off long-dead HD64465 cchip support.
2008-10-28 20:07:44 +09:00
sound
Merge branch 'topic/fix/hda' into for-linus
2008-11-25 17:21:32 +01:00
sparc
sparc: Remove Documentation/sparc/sbus_drivers.txt
2008-08-29 02:15:25 -07:00
spi
spi documentation: use __initdata on struct
2008-12-01 19:55:24 -08:00
sysctl
Document kernel taint flags properly
2008-10-29 15:03:49 -07:00
telephony
remove mention of CONFIG_KMOD from documentation
2008-07-22 19:24:29 +10:00
thermal
timers
hpet: /dev/hpet - fixes and cleanup
2008-07-31 18:45:41 +02:00
tracers
tracing, doc: update mmiotrace documentation
2008-11-23 20:33:24 +01:00
uml
usb
Merge branch 'master' into for-upstream
2008-10-20 16:07:19 +01:00
video4linux
V4L/DVB (9482): Documentation, especially regarding audio and informational links
2008-11-11 08:11:24 -02:00
vm
.gitignore updates
2008-10-30 11:38:45 -07:00
w1
hdq: documentation for OMAP HDQ
2008-11-12 17:17:18 -08:00
watchdog
.gitignore updates
2008-10-30 11:38:45 -07:00
x86
doc/x86: fix doc subdirs
2008-10-28 16:36:42 +01:00
zh_CN
00-INDEX
Merge branch 'doc-subdirs' of git://git.kernel.org/pub/scm/linux/kernel/git/rdunlap/linux-docs
2008-11-15 11:51:03 -08:00
applying-patches.txt
atomic_ops.txt
basic_profiling.txt
binfmt_misc.txt
braille-console.txt
bt8xxgpio.txt
gpio: add bt8xxgpio driver
2008-07-25 10:53:30 -07:00
BUG-HUNTING
c2port.txt
Add c2 port support
2008-11-12 17:17:18 -08:00
cachetlb.txt
Changes
CodingStyle
documentation: update CodingStyle tips for Emacs users
2008-07-25 10:53:29 -07:00
cpu-hotplug.txt
cpu hotplug: s390 doesn't support additional_cpus anymore.
2008-08-12 16:07:28 -07:00
cpu-load.txt
cpusets.txt
container freezer: document the cgroup freezer subsystem.
2008-10-20 08:52:34 -07:00
cputopology.txt
dcdbas.txt
debugging-modules.txt
debugging-via-ohci1394.txt
dell_rbu.txt
devices.txt
USB: add USB test and measurement class driver
2008-10-17 14:40:51 -07:00
DMA-API.txt
DMA-API.txt: fix description of pci_map_sg/dma_map_sg scatterlists handling
2008-12-01 19:55:24 -08:00
DMA-attributes.txt
powerpc/cell: Add DMA_ATTR_WEAK_ORDERING dma attribute and use in Cell IOMMU code
2008-07-22 10:39:36 +10:00
DMA-ISA-LPC.txt
DMA-mapping.txt
Documentation/DMA-mapping.txt: update for pci_dma_mapping_error() changes
2008-09-23 08:09:14 -07:00
dontdiff
dontdiff: more updates to be closer to gitignore
2008-10-16 11:21:31 -07:00
edac.txt
Documentation cleanup: trivial misspelling, punctuation, and grammar corrections.
2008-07-26 12:00:06 -07:00
eisa.txt
email-clients.txt
Documentation/email-clients.txt: add some info about gmail
2008-11-06 15:41:19 -08:00
exception.txt
feature-removal-schedule.txt
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
2008-11-11 15:43:02 -08:00
ftrace.txt
ftrace: ftrace.txt version update
2008-11-04 10:12:24 +01:00
gpio.txt
gpiolib: request/free hooks
2008-10-16 11:21:40 -07:00
highuid.txt
HOWTO
Remove Andrew Morton's http://www.zip.com.au/~akpm/
2008-10-16 11:21:32 -07:00
hw_random.txt
ics932s401
ics932s401: new clock generator chip driver
2008-11-12 17:17:18 -08:00
initrd.txt
Intel-IOMMU.txt
Documentation cleanup: trivial misspelling, punctuation, and grammar corrections.
2008-07-26 12:00:06 -07:00
io-mapping.txt
io mapping: improve documentation
2008-11-03 18:21:44 +01:00
IO-mapping.txt
io_ordering.txt
iostats.txt
Documentation cleanup: trivial misspelling, punctuation, and grammar corrections.
2008-07-26 12:00:06 -07:00
IPMI.txt
IRQ-affinity.txt
IRQ.txt
irqflags-tracing.txt
isapnp.txt
java.txt
kernel-doc-nano-HOWTO.txt
sched: add kernel doc for the completion, fix kernel-doc-nano-HOWTO.txt
2008-08-26 10:26:54 +02:00
kernel-docs.txt
kernel-parameters.txt
Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
2008-11-19 18:51:56 -08:00
keys-request-key.txt
keys.txt
Documentation cleanup: trivial misspelling, punctuation, and grammar corrections.
2008-07-26 12:00:06 -07:00
kobject.txt
kobject: Fix kobject_rename and !CONFIG_SYSFS
2008-10-16 09:24:52 -07:00
kprobes.txt
kref.txt
ldm.txt
leds-class.txt
Documentation cleanup: trivial misspelling, punctuation, and grammar corrections.
2008-07-26 12:00:06 -07:00
local_ops.txt
Documentation cleanup: trivial misspelling, punctuation, and grammar corrections.
2008-07-26 12:00:06 -07:00
lockdep-design.txt
lockstat.txt
logo.gif
logo.txt
magic-number.txt
Makefile
docsrc: build Documentation/ sources
2008-08-12 16:07:30 -07:00
ManagementStyle
docs: fix ManagementStyle book name
2008-10-30 11:38:46 -07:00
markers.txt
markers: documentation fix for teardown
2008-10-14 10:38:33 +02:00
mca.txt
md.txt
md: Tidy up rdev_size_store a bit:
2008-07-21 14:22:18 +10:00
memory-barriers.txt
memory-hotplug.txt
memory.txt
mono.txt
mutex-design.txt
nmi_watchdog.txt
x86: nmi_watchdog - documentation fix - v2
2008-07-08 13:16:10 +02:00
nommu-mmap.txt
numastat.txt
oops-tracing.txt
parport-lowlevel.txt
parport.txt
pi-futex.txt
pnp.txt
preempt-locking.txt
printk-formats.txt
DOC: add printk-formats.txt
2008-11-12 17:17:17 -08:00
prio_tree.txt
rbtree.txt
rfkill.txt
rfkill: add master_switch_mode and EPO lock to rfkill and rfkill-input
2008-10-31 19:00:09 -04:00
robust-futex-ABI.txt
robust-futexes.txt
rt-mutex-design.txt
rt-mutex.txt
rtc.txt
SAK.txt
Remove Andrew Morton's old email accounts
2008-10-16 11:21:32 -07:00
SecurityBugs
SELinux.txt
selinux: add support for installing a dummy policy (v2)
2008-08-27 08:54:08 +10:00
serial-console.txt
sgi-ioc4.txt
sgi-visws.txt
SM501.txt
Smack.txt
sparse.txt
kbuild: sparse needs CF not CHECKFLAGS
2008-07-25 22:12:39 +02:00
spinlocks.txt
stable_api_nonsense.txt
stable_kernel_rules.txt
Update stable tree documentation
2008-10-29 15:03:49 -07:00
SubmitChecklist
documentation: explain memory barriers
2008-10-16 11:21:32 -07:00
SubmittingDrivers
Remove Andrew Morton's old email accounts
2008-10-16 11:21:32 -07:00
SubmittingPatches
Merge branch 'docs' of git://git.lwn.net/linux-2.6
2008-10-16 12:18:16 -07:00
svga.txt
sysfs-rules.txt
sysfs-rules.txt: reword API stability statement
2008-07-21 21:54:59 -07:00
sysrq.txt
Merge branch 'v28-timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
2008-10-20 13:19:56 -07:00
tracepoints.txt
tracing: tracepoints, documentation
2008-10-14 10:28:47 +02:00
unaligned-memory-access.txt
introduce HAVE_EFFICIENT_UNALIGNED_ACCESS Kconfig symbol
2008-07-25 10:53:27 -07:00
unicode.txt
unshare.txt
VGA-softcursor.txt
video-output.txt
volatile-considered-harmful.txt
Documentation cleanup: trivial misspelling, punctuation, and grammar corrections.
2008-07-26 12:00:06 -07:00
voyager.txt
zorro.txt