K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-06-03T20:07:37.887975Z K 7 svn:log V 745 pfsync_sendout() is usually called when softc has accumulated enough data to send a packet, and now is being requested to add data that would overflow a packet. Thus, swi scheduled at the end of pfsync_sendout() is going to service not a single packet, but a couple of them, and the second one is containg only one piece of pfsync data. This leads to coupling of pfsync pps: every odd packet is full-sized and every even is undersized. To fix this, a flag is added to softc - PFSYNCF_PUSH, which indicates, whether we swi handler needs to sqeeze data from the softc prior to sending packets. In all cases when we need to send data immidiately, this flags is raised prioir to swi_sched(). But in case of usual sc_len overflow, it isn't raised. END