mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-09 06:16:10 +02:00
of1.0: utils.round_up cleanup
Signed-off-by: Can Zhang <can@canx.me> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
e1414b7fbe
commit
533fd97251
@ -23,6 +23,7 @@ from ryu.lib import mac
|
||||
from . import ofproto_parser
|
||||
from . import ofproto_v1_0
|
||||
from . import nx_match
|
||||
import utils.round_up
|
||||
|
||||
import logging
|
||||
LOG = logging.getLogger('ryu.ofproto.ofproto_v1_0_parser')
|
||||
@ -1069,7 +1070,7 @@ class NXFlowStats(object):
|
||||
actions = []
|
||||
total_len = original_offset + nxflow_stats.length
|
||||
match_len = nxflow_stats.match_len
|
||||
offset += (match_len + 7) / 8 * 8 - match_len
|
||||
offset += utils.round_up(match_len, 8) - match_len
|
||||
while offset < total_len:
|
||||
action = OFPAction.parser(buf, offset)
|
||||
actions.append(action)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user