[dpdk-dev] Explanation of the QoS offset values used in the QoS scheduler example app.

2015-02-16 Thread Dumitrescu, Cristian
Hi, These are byte offsets used for reading these packet fields, considering that packet bytes are stored in memory in network order, while the CPU is little endian, so byte swapping takes place on read. This is probably not the best way to write this code, and I agree this portion of the app

[dpdk-dev] Explanation of the QoS offset values used in the QoS scheduler example app.

2015-02-16 Thread Aws Ismail
Thanks Cristian and Ariel your reply and explanation. It is clear to me now. Cheers. Aws\ On Feb 16, 2015 6:34 AM, "Dumitrescu, Cristian" < cristian.dumitrescu at intel.com> wrote: > Hi, > > These are byte offsets used for reading these packet fields, considering > that packet bytes are stored

[dpdk-dev] Explanation of the QoS offset values used in the QoS scheduler example app.

2015-02-14 Thread Aws Ismail
Hi everyone, I am looking at this portion of the code in the app_thread.c file of the QoS scheduler example application: /* * QoS parameters are encoded as follows: * Outer VLAN ID defines subport * Inner VLAN ID defines pipe * Destination IP 0.0.XXX.0 defines traffic class * Destination IP host