summaryrefslogtreecommitdiff
path: root/trafgen.zsh
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-01-29 00:06:26 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-01-29 08:59:25 +0100
commitd275f16591ca44d91ee4e56d65553529a429a62d (patch)
tree01b3095e29d9b13c5feceeb1b563f41e3f1f56f4 /trafgen.zsh
parentbe21df123309c83cd47a1fa5f2c0ee1cf4657810 (diff)
trafgen: l4: Add UDP header generation logic
Add trafgen_l4.c module with generation UDP header fields. UDP protocol generation logic automaticaly sets the protocol field of the lower level protocol to IPPROTO_UDP by default (if it is IPv4). Also checksum & length are calculated and set if it is not given by the user. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen.zsh')
0 files changed, 0 insertions, 0 deletions
quires either a 16b rotate or byte swap which can cost 1 cycle or more depending on the processor. I had previously addressed this for eth_type_trans, however in doing so I had overlooked checking with sparse and had introduced a couple sparse warnings. The first patch in this series fixes those sparse warnings as well as does some additional optimization for big endian systems. In addition it pushes the code out into a separate function which can then be used in the other patches to reduce the instruction count/processing time in those functions as well. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipvlan')