On Thu, Oct 18, 2018 at 08:45:15PM +0800, 张萌 wrote:
>          Hi, guys:
> 
>          I got stuck in Nicira extension actions when developing my own
> openflow controller. 
> 
> When I marsh the stack_push action, the ovs snooper tells “|zero bit source
> field ipv6_dst”  as the following picture.
> 
> 
> 
>  
> 
> is there anywhere i can find a dev doc of Nicira extension in ovs ?

The main documentation is in lib/ofp-actions.c.  It's pretty simple
really:

/* Action structure for NXAST_STACK_PUSH and NXAST_STACK_POP.
 *
 * Pushes (or pops) field[offset: offset + n_bits] to (or from)
 * top of the stack.
 */
struct nx_action_stack {
    ovs_be16 type;                  /* OFPAT_VENDOR. */
    ovs_be16 len;                   /* Length is 16. */
    ovs_be32 vendor;                /* NX_VENDOR_ID. */
    ovs_be16 subtype;               /* NXAST_STACK_PUSH or NXAST_STACK_POP. */
    ovs_be16 offset;                /* Bit offset into the field. */
    /* Followed by:
     * - OXM/NXM header for field to push or pop (4 or 8 bytes).
     * - ovs_be16 'n_bits', the number of bits to extract from the field.
     * - Enough 0-bytes to pad out the action to 24 bytes. */
    uint8_t pad[12];                /* See above. */
};
OFP_ASSERT(sizeof(struct nx_action_stack) == 24);
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to