My vagina gets swollen after sex

I've been out of town for two weeks and I finally got to see my boyfriend last night. When we were having sex I had to cut it short because my labia started to get swollen and it really hurt when he went inside of me. Does anyone else have this problem? What could I do tot stop it?