Hi, Yi,

My switch is hardware switch. The app is written by myself.
So buffer_id equal 0 means disabling buffering, am i right ?

On Wed, Aug 19, 2015 at 4:35 PM, Yi Tseng <a86487...@gmail.com> wrote:

> Hi
>
> What switch(ovs? LINE? or real hardware?) you use?
>
> Did you use simple_switch_13? simple_switch_13 use OFPCML_NO_BUFFER for
> packet in (line 47)
>
>
> --
> Yi
>
> 2015-08-19 16:07 GMT+08:00 Vinllen Chen <cvinl...@gmail.com>:
>
>> Hi, Yi,
>>
>> Do you kown the reason that the buffer_id of message is always 0 ? Does
>> it means that the switch disable the buffering ?
>>
>> Thankyou verymuch.
>>
>> On Wed, Aug 19, 2015 at 3:34 PM, Vinllen Chen <cvinl...@gmail.com> wrote:
>>
>>> Aha, It helped me, thankyou Yi ^_^
>>>
>>> On Wed, Aug 19, 2015 at 3:13 PM, Yi Tseng <a86487...@gmail.com> wrote:
>>>
>>>> Hi
>>>>
>>>> "data" should be None if you want to use buffer id.
>>>>
>>>> so the code should look like this:
>>>>
>>>> out = datapath.ofproto_parser.OFPPacketOut(
>>>>     datapath = datapath,
>>>>     buffer_id = msg.buffer_id,
>>>>     in_port = datapath.ofproto.OFPP_CONTROLLER,
>>>>     actions = actions
>>>> )
>>>>
>>>> --
>>>> Yi
>>>>
>>>> 2015-08-19 15:02 GMT+08:00 Vinllen Chen <cvinl...@gmail.com>:
>>>>
>>>>> Hi, all,
>>>>>
>>>>> I want to send packet-out message with buffer_id to let the packet to
>>>>> be reprocess to rego through the pipeline:
>>>>>                     actions = []
>>>>>
>>>>> actions.append(datapath.ofproto_parser.OFPActionOutput(
>>>>>                         datapath.ofproto.OFPP_TABLE)
>>>>>                     )
>>>>>
>>>>>                     out = datapath.ofproto_parser.OFPPacketOut(
>>>>>                         datapath = datapath,
>>>>>                         buffer_id = msg.buffer_id,
>>>>>                         #buffer_id = datapath.ofproto.OFP_NO_BUFFER,
>>>>>                         in_port = datapath.ofproto.OFPP_CONTROLLER,
>>>>>                         actions = actions,
>>>>>                         data = pkt.data
>>>>>                     )
>>>>>                     datapath.send_msg(out)
>>>>>
>>>>> The error shows:
>>>>>   File
>>>>> "/usr/local/python2.7.6/lib/python2.7/site-packages/ryu/ofproto/ofproto_v1_3_parser.py",
>>>>> line 2384, in _serialize_body
>>>>>     assert self.buffer_id == 0xffffffff
>>>>>
>>>>> It looks like the buffer_id must be NO_BUFFER, but the packet with
>>>>> specify buffer_id is allowed in openflow spec.
>>>>> So how to solve this problem ? Thankyou
>>>>> --
>>>>> Best Regards,
>>>>> Vinllen
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Ryu-devel mailing list
>>>>> Ryu-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Yi Tseng (a.k.a Takeshi)
>>>> Taiwan National Chiao Tung University
>>>> Department of Computer Science
>>>> W2CNLab
>>>>
>>>> http://blog.takeshi.tw
>>>>
>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Vinllen
>>>
>>
>>
>>
>> --
>> Best Regards,
>> Vinllen
>>
>
>
>
> --
> Yi Tseng (a.k.a Takeshi)
> Taiwan National Chiao Tung University
> Department of Computer Science
> W2CNLab
>
> http://blog.takeshi.tw
>



-- 
Best Regards,
Vinllen
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to